3 # init.d script for HELM uri_set_queue.cgi
5 # by --Zack <zack@cs.unibo.it>
6 # Created: Tue, 8 Oct 2002 17:18:17 +0200
7 # Last-Modified: Wed, 20 Nov 2002 10:50:25 +0100
9 DAEMON=/projects/helm/daemons/graphs/tools/uriSetQueue.opt
10 USAGE="Usage: /etc/init.d/helm-uri-set-queue { start | stop | restart }"
12 if [ -f /etc/default/helm ]; then
16 NAME=`basename $DAEMON`
17 PIDFILE=/var/run/$NAME.pid
20 echo "Starting $DAEMON ..."
22 --start --background --pidfile $PIDFILE --make-pidfile \
23 --chuid $OWNER --exec $DAEMON
27 echo "Stopping $DAEMON ..."
28 start-stop-daemon --stop --pidfile $PIDFILE && \
29 (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi)