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: Wed, 15 Jan 2003 15:14:07 +0100
9 DAEMON="/projects/helm/uwobo_mowgli/uwobo"
10 USAGE="Usage: /etc/init.d/helm-uwobo_mowgli { start | stop | restart }"
13 if [ -f /etc/default/helm_mowgli ]; then
14 . /etc/default/helm_mowgli
16 if ! [ -f "$ENVSCRIPT" ]; then
17 echo "Can't find environment script '$ENVSCRIPT'"
20 . $ENVSCRIPT &> /dev/null
22 NAME=`basename $DAEMON`
23 PIDFILE=/projects/helm/run/"$NAME"_mowgli.pid
26 echo "Starting $DAEMON ..."
28 --start --background --pidfile $PIDFILE --make-pidfile \
29 --chuid $OWNER --exec $DAEMON
30 /etc/init.d/helm-tomcat_mowgli start
34 echo "Stopping $DAEMON ..."
35 start-stop-daemon --stop --pidfile $PIDFILE && \
36 (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi)