PIDFILE=/var/run/$NAME.pid
do_start () {
- echo -n "Starting $DAEMON ... "
+ echo -n "Starting $DAEMON"
start-stop-daemon \
--start --pidfile $PIDFILE --make-pidfile \
--chuid $OWNER --background --exec $DAEMON
- echo "done!"
+ echo "."
+ echo -n "Starting $DAEMON respawner"
+ /etc/init.d/daemon_respawner.sh -p $PIDFILE \ -m root@localhost \
+ -r http://localhost:58085/help -d `basename $0` &
+ echo "."
}
do_stop () {
- echo -n "Stopping $DAEMON ... "
+ echo -n "Stopping $DAEMON respawner"
+ /etc/init.d/daemon_respawner.sh -d `basename $0` -s
+ echo "."
+ echo -n "Stopping $DAEMON"
start-stop-daemon --stop --pidfile $PIDFILE && \
(if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi)
- echo "done!"
+ echo "."
}
case "$1" in