#
# by --Zack <zack@cs.unibo.it>
# Created: Wed, 15 Jan 2003 15:14:07 +0100
-# Last-Modified: Fri, 17 Jan 2003 16:46:41 +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
. $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 "Starting $DAEMON ..."
+ echo -n "Starting $DAEMON ... "
start-stop-daemon \
--start --background --pidfile $PIDFILE --make-pidfile \
--chuid $OWNER --exec $DAEMON
- echo "Waiting for UWOBO to startup (2 seconds) ..."
+ 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 () {