3 # init.d script for HELM draw_graph.cgi
5 # by --Zack <zack@cs.unibo.it>
6 # Created: Wed, 9 Oct 2002 11:12:01 +0200
7 # Last-Modified: Wed, 9 Oct 2002 11:12:01 +0200
9 DAEMON=/projects/helm/daemons/graphs/tools/drawGraph.opt
10 USAGE="Usage: /etc/init.d/helm-draw-graph { 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)