5 CONFFILE
=/etc
/$NAME.conf
6 PIDFILE
=/var
/run
/$NAME.pid
7 DAEMON_ARGS
="-D -c $CONFFILE"
10 test -f $DAEMON ||
exit 0
13 printf "Starting $NAME: "
14 start-stop-daemon
--start --quiet --background --exec $DAEMON \
16 && echo "OK" ||
echo "FAIL"
20 printf "Stopping $NAME: "
21 start-stop-daemon
--stop --quiet --pidfile $PIDFILE \
22 && echo "OK" ||
echo "FAIL"
38 echo "Usage: $0 {start|stop|restart}"