blob: 72b04e6286c627aaf440f8fb2c78154b44902063 (
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-2002 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.3 2003/03/19 18:42:27 tantive 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 $?
}
|