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: Wed, 8 Jan 2003 12:09:41 +0100
9 DAEMON="/projects/helm/daemons/rdfly/rdfly.opt"
10 USAGE="Usage: /etc/init.d/helm-rdfly { start | stop | restart }"
12 if [ -f /etc/default/helm ]; then
16 NAME=`basename $DAEMON`
17 PIDFILE=/var/run/$NAME.pid
20 echo "Starting $DAEMON ..."
22 --start --background --pidfile $PIDFILE --make-pidfile \
23 --chuid $OWNER --exec $DAEMON
27 echo "Stopping $DAEMON ..."
28 start-stop-daemon --stop --pidfile $PIDFILE && \
29 (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi)