]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/scripts/init.d/helm-http-getter_mowgli
use new daemon_respawner.sh
[helm.git] / helm / scripts / init.d / helm-http-getter_mowgli
index 25433a23a2f587f2dc3bb6e700bdbc5f558373a9..3ac21e0fa5eb1054f3f372b200a6ad0c41adccea 100755 (executable)
@@ -6,21 +6,15 @@
 # Created: Tue,  8 Oct 2002 17:18:17 +0200
 # Last-Modified: Wed,  8 Jan 2003 12:09:41 +0100
 
-DAEMON="/projects/helm/http_getter_mowgli/http_getter"
+DAEMON="/projects/helm/daemons/http_getter/http_getter.opt"
 USAGE="Usage: /etc/init.d/helm-http-getter_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"_mowgli.pid
+PIDFILE=/var/run/"$NAME"_mowgli.pid
 
 do_start () {
   echo "Starting $DAEMON ..."