]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/scripts/init.d/helm-draw-graph_mowgli
use new daemon_respawner.sh
[helm.git] / helm / scripts / init.d / helm-draw-graph_mowgli
index d1a08f9f6b1b0053cc7faf149cb04230b7d182d1..a8553fb103552e613cedaba21cf72136797cd0d7 100755 (executable)
@@ -6,21 +6,15 @@
 # Created: Wed,  9 Oct 2002 11:12:01 +0200
 # Last-Modified: Wed,  9 Oct 2002 11:12:01 +0200
 
-DAEMON=/projects/helm/graphs/tools/draw_graph.cgi
+DAEMON=/projects/helm/daemons/graphs/tools/drawGraph.opt
 USAGE="Usage: /etc/init.d/helm-draw-graph_mowgli { start | stop | restart }"
 
-ENVSCRIPT=""
 if [ -f /etc/default/helm_mowgli ]; then
   . /etc/default/helm_mowgli
 fi
-if ! [ -f "$ENVSCRIPT" ]; then
-  echo "Can't find environment script '$ENVSCRIPT'"
-  exit 1
-fi
-. $ENVSCRIPT &> /dev/null
 
 NAME=`basename $DAEMON`
-PIDFILE=/projects/helm/run/$NAME.pid
+PIDFILE=/var/run/"$NAME"_mowgli.pid
 
 do_start () {
   echo "Starting $DAEMON ..."