3 # init.d script for http_getter
5 # by --Zack <zack@cs.unibo.it>
6 # Created: Tue, 8 Oct 2002 17:18:17 +0200
7 # Last-Modified: Fri, 16 Apr 2004 18:21:30 +0200
9 DAEMON="/projects/helm/daemons/http_getter/http_getter.opt"
10 USAGE="Usage: /etc/init.d/helm-http-getter { start | stop | restart }"
12 if [ -f /etc/default/helm ]; then
16 NAME=`basename $DAEMON`
17 PIDFILE=/var/run/$NAME.pid
20 echo -n "Starting $DAEMON"
22 --start --background --pidfile $PIDFILE --make-pidfile \
23 --chuid $OWNER --exec $DAEMON
25 echo -n "Starting $DAEMON respawner"
26 /etc/init.d/daemon_respawner.sh -p $PIDFILE \ -m root@localhost \
27 -r http://localhost:58081/help -d `basename $0` &
32 echo -n "Stopping $DAEMON respawner"
33 /etc/init.d/daemon_respawner.sh -d `basename $0` -s
35 echo -n "Stopping $DAEMON"
36 start-stop-daemon --stop --pidfile $PIDFILE && \
37 (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi)