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: Fri, 16 Apr 2004 17:54:54 +0200
9 DAEMON="/projects/helm/daemons/uwobo/uwobo.opt"
10 USAGE="Usage: /etc/init.d/helm-uwobo { start | stop | restart }"
12 if [ -f /etc/default/helm ]; then
16 NAME=`basename $DAEMON`
17 # Warning: $PIDFILE value is shared by UWOBO respawner, change at your own risk
18 PIDFILE=/var/run/$NAME.pid
21 echo -n "Starting $DAEMON"
23 --start --background --pidfile $PIDFILE --make-pidfile \
24 --chuid $OWNER --exec $DAEMON
26 echo -n "Waiting for UWOBO to startup (2 seconds) ... "
29 /etc/init.d/helm-uwobo-stylesheets start
30 echo -n "Starting $DAEMON respawner"
31 /etc/init.d/daemon_respawner.sh -p $PIDFILE \ -m root@localhost \
32 -r http://localhost:58080/help -d `basename $0` &
37 echo -n "Stopping $DAEMON respawner"
38 /etc/init.d/daemon_respawner.sh -d `basename $0` -s
40 echo -n "Stopping $DAEMON ... "
41 start-stop-daemon --stop --pidfile $PIDFILE && \
42 (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi)