X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fscripts%2Finit.d%2Fhelm-uwobo_mowgli;h=b3ac8431ae7ea2552b5c11417f7c0e6dc36d7e9b;hb=970ba0021a992efe25ec374875dc127ff236cc74;hp=3861c7689b5d4ce82515049eb596f8fc97b1d22e;hpb=d7af0bea08601069238c9523a3274982681209bf;p=helm.git diff --git a/helm/scripts/init.d/helm-uwobo_mowgli b/helm/scripts/init.d/helm-uwobo_mowgli index 3861c7689..b3ac8431a 100755 --- a/helm/scripts/init.d/helm-uwobo_mowgli +++ b/helm/scripts/init.d/helm-uwobo_mowgli @@ -6,7 +6,7 @@ # Created: Wed, 15 Jan 2003 15:14:07 +0100 # Last-Modified: Tue, 8 Apr 2003 09:43:08 +0200 zacchiro -DAEMON="/projects/helm/uwobo_mowgli/uwobo" +DAEMON="/projects/helm/daemons/uwobo/uwobo" USAGE="Usage: /etc/init.d/helm-uwobo_mowgli { start | stop | restart }" UWOBO_FOREVER="/etc/init.d/uwobo_forever.sh" @@ -22,7 +22,7 @@ fi NAME=`basename $DAEMON` # Warning: $PIDFILE value is shared by UWOBO respawner, change at your own risk -PIDFILE=/projects/helm/run/"$NAME"_mowgli.pid +PIDFILE=/var/run/"$NAME"_mowgli.pid do_start () { echo -n "Starting $DAEMON ... " @@ -44,9 +44,13 @@ do_start () { } do_stop () { - echo "Stopping $DAEMON ..." + echo -n "Stopping $DAEMON ... " start-stop-daemon --stop --pidfile $PIDFILE && \ (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi) + echo "done!" + echo -n "Stopping UWOBO respawner (uwobo_forever.sh) ... " + killall `basename $UWOBO_FOREVER` + echo "done!" } case "$1" in