4 # An init script for adorno
6 # Witten for adorno by Andrew McMillan <awm@debian.org>
12 FIFO
=/var
/run
/${NAME}/fifo
13 DAEMON
=/usr
/local
/sbin
/${NAME}
14 PIDFILE
=/var
/run
/${NAME}/${NAME}.pid
16 test -x $DAEMON ||
exit 0
20 echo -n "Starting Music Server Daemon: "
21 if [ ! -p ${FIFO} ] ; then
22 mknod
-m 666 ${FIFO} p
24 start-stop-daemon
--background --start --exec $DAEMON
28 echo -n "Stopping Music Server Daemon: "
29 start-stop-daemon
--stop --oknodo --pidfile ${PIDFILE}
33 restart|reload|force-reload
)
34 echo -n "Restarting Music Server Daemon: "
35 start-stop-daemon
--stop --oknodo --pidfile /var
/run
/adorno
/adorno.pid
38 start-stop-daemon
--background --start --exec $DAEMON
42 echo "Usage: /etc/init.d/$NAME {start|stop|reload}"