4 PIDFILE
=/var
/run
/$NAME.pid
8 printf "Starting $NAME: "
9 start-stop-daemon
-S -q -m -b -p $PIDFILE --exec $DAEMON
10 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
13 printf "Stopping $NAME: "
14 start-stop-daemon
-K -q -p $PIDFILE
15 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
33 echo "Usage: $0 {start|stop|restart|reload}"