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