From 6dc5a75359bd858a997c6f190e35e3c048bf7197 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Fri, 16 Apr 2004 16:02:38 +0000 Subject: [PATCH] use new daemon_respawner.sh --- helm/scripts/init.d/helm-uwobo_mowgli | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/helm/scripts/init.d/helm-uwobo_mowgli b/helm/scripts/init.d/helm-uwobo_mowgli index f21805ab9..bcdb46983 100755 --- a/helm/scripts/init.d/helm-uwobo_mowgli +++ b/helm/scripts/init.d/helm-uwobo_mowgli @@ -4,11 +4,10 @@ # # by --Zack # Created: Wed, 15 Jan 2003 15:14:07 +0100 -# Last-Modified: Tue, 8 Apr 2003 09:43:08 +0200 zacchiro +# Last-Modified: Fri, 16 Apr 2004 17:54:54 +0200 DAEMON="/projects/helm/daemons/uwobo/uwobo.opt" USAGE="Usage: /etc/init.d/helm-uwobo_mowgli { start | stop | restart }" -UWOBO_FOREVER="/etc/init.d/uwobo_forever.sh" if [ -f /etc/default/helm_mowgli ]; then . /etc/default/helm_mowgli @@ -28,23 +27,20 @@ do_start () { 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 + echo -n "Starting $DAEMON respawner" + /etc/init.d/daemon_respawner.sh -p $PIDFILE \ -m root@localhost \ + -r http://localhost:58080/help -d `basename $0` & + echo "." } do_stop () { + echo -n "Stopping $DAEMON respawner" + /etc/init.d/daemon_respawner.sh -d `basename $0` -s + echo "." 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 -- 2.39.2