3 # /etc/rc.d/rsyncd: start/stop rsyncd daemon
6 SSD
=/sbin
/start-stop-daemon
8 PID
=/var
/run
/rsyncd.pid
13 $SSD --start --pidfile $PID --exec $PROG -- $OPTS
16 $SSD --stop --retry 10 --pidfile $PID
23 $SSD --status --pidfile $PID
25 0) echo "$PROG is running with pid $(cat $PID)" ;;
26 1) echo "$PROG is not running but the pid file $PID exists" ;;
27 3) echo "$PROG is not running" ;;
28 4) echo "Unable to determine the program status" ;;
32 echo "usage: $0 [start|stop|restart|status]"