summaryrefslogtreecommitdiff
blob: 70d6ad5c46fda0ede2d11f79e56984cf5a86e788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoo-rsync-mirror/files/rsyncd.init,v 1.4 2004/05/02 22:58:16 mholzer Exp $

depend() {
	use net
}

# FYI: --sparce seems to cause problems.
RSYNC_OPTS="--safe-links --compress --bwlimit=700 --timeout=1800"


start() {
	ebegin "Starting rsyncd"
	rsync --daemon ${RSYNC_OPTS}
	eend $?
}

stop() {
	ebegin "Stopping rsyncd"
	kill `cat /var/run/rsyncd.pid`
	eend $?
}