X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=helm%2Fscripts%2Finit.d%2Fhelm-uwobo_mowgli;fp=helm%2Fscripts%2Finit.d%2Fhelm-uwobo_mowgli;h=0000000000000000000000000000000000000000;hp=888b4391bcb8e484d9f0484fb88981d52087a8a2;hb=3ef089a4c58fbe429dd539af6215991ecbe11ee2;hpb=1c7fb836e2af4f2f3d18afd0396701f2094265ff diff --git a/helm/scripts/init.d/helm-uwobo_mowgli b/helm/scripts/init.d/helm-uwobo_mowgli deleted file mode 100755 index 888b4391b..000000000 --- a/helm/scripts/init.d/helm-uwobo_mowgli +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/sh -# -# init.d script for http_getter -# -# by --Zack -# 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" -USAGE="Usage: /etc/init.d/helm-uwobo_mowgli { start | stop | restart }" -UWOBO_FOREVER="/etc/init.d/uwobo_forever.sh" - -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` -# Warning: $PIDFILE value is shared by UWOBO respawner, change at your own risk -PIDFILE=/projects/helm/run/"$NAME"_mowgli.pid - -do_start () { - echo -n "Starting $DAEMON ... " - start-stop-daemon \ - --start --background --pidfile $PIDFILE --make-pidfile \ - --chuid $OWNER --exec $DAEMON - echo "done!" - echo -n "Waiting for UWOBO to startup (2 seconds) ... " - sleep 2 - echo "done!" - /etc/init.d/helm-tomcat_mowgli start - echo -n "Starting UWOBO respawner (uwobo_forever.sh) ... " - if [ -x "$UWOBO_FOREVER" ]; then - $UWOBO_FOREVER & - echo "done!" - else - echo "Can't find $UWOBO_FOREVER :-(" - fi -} - -do_stop () { - 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 - - start) - do_start - ;; - - stop) - do_stop - ;; - - restart) - do_stop - do_start - ;; - - *) - echo "$USAGE" >&2 - exit 1 - ;; - -esac -