3 # rsyncd This shell script takes care of starting and stopping rsyncd
6 # description: rsync daemon
9 # pidfile: /var/run/rsyncd.pid
11 # Source function library.
12 . /etc/rc.d/init.d/functions
14 # Source networking configuration.
15 . /etc/sysconfig/network
17 # Check that networking is up.
18 if is_no "${NETWORKING}"; then
19 msg_network_down rsyncd
23 . /etc/sysconfig/rsyncd
25 # See how we were called.
29 if [ ! -f /var/lock/subsys/rsyncd ]; then
33 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rsyncd
35 msg_already_running rsyncd
40 if [ -f /var/lock/subsys/rsyncd ]; then
43 rm -f /var/lock/subsys/rsyncd >/dev/null 2>&1
45 msg_not_running rsyncd
57 msg_usage "$0 {start|stop|restart|status}"