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:14 +0100
9 #DAEMON=/projects/helm/graphs/tools/uri_set_queue.cgi
10 DAEMON=/projects/helm/graphs/tools/uriSetQueue.opt
11 USAGE="Usage: /etc/init.d/helm-uri-set-queue { start | stop | restart }"
14 if [ -f /etc/default/helm ]; then
17 if ! [ -f "$ENVSCRIPT" ]; then
18 echo "Can't find environment script '$ENVSCRIPT'"
21 . $ENVSCRIPT &> /dev/null
23 NAME=`basename $DAEMON`
24 PIDFILE=/projects/helm/run/$NAME.pid
27 echo "Starting $DAEMON ..."
29 --start --background --pidfile $PIDFILE --make-pidfile \
30 --chuid $OWNER --exec $DAEMON
34 echo "Stopping $DAEMON ..."
35 start-stop-daemon --stop --pidfile $PIDFILE && \
36 (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi)