3 # init.d script for http_getter
5 # by --Zack <zack@cs.unibo.it>
6 # Created: Wed, 15 Jan 2003 15:14:07 +0100
7 # Last-Modified: Tue, 8 Apr 2003 09:43:08 +0200 zacchiro
9 DAEMON="/projects/helm/daemons/uwobo/uwobo.opt"
10 USAGE="Usage: /etc/init.d/helm-uwobo_mowgli { start | stop | restart }"
11 UWOBO_FOREVER="/etc/init.d/uwobo_forever.sh"
13 if [ -f /etc/default/helm_mowgli ]; then
14 . /etc/default/helm_mowgli
17 NAME=`basename $DAEMON`
18 # Warning: $PIDFILE value is shared by UWOBO respawner, change at your own risk
19 PIDFILE=/var/run/"$NAME"_mowgli.pid
22 echo -n "Starting $DAEMON ... "
24 --start --background --pidfile $PIDFILE --make-pidfile \
25 --chuid $OWNER --exec $DAEMON
27 echo -n "Waiting for UWOBO to startup (2 seconds) ... "
30 /etc/init.d/helm-tomcat_mowgli start
31 echo -n "Starting UWOBO respawner (uwobo_forever.sh) ... "
32 if [ -x "$UWOBO_FOREVER" ]; then
36 echo "Can't find $UWOBO_FOREVER :-("
41 echo -n "Stopping $DAEMON ... "
42 start-stop-daemon --stop --pidfile $PIDFILE && \
43 (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi)
45 echo -n "Stopping UWOBO respawner (uwobo_forever.sh) ... "
46 killall `basename $UWOBO_FOREVER`