3 # init.d script for HELM searchEngine
5 # by --Zack <zack@cs.unibo.it>
6 # Created: Fri, 22 Nov 2002 15:51:25 +0100
7 # Last-Modified: Thu, 6 Mar 2003 17:40:16 +0100
9 DAEMON="/projects/helm/daemons/searchEngine/searchEngine.opt"
10 USAGE="Usage: /etc/init.d/helm-search-engine { 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 --pidfile $PIDFILE --make-pidfile \
23 --chuid $OWNER --background --exec $DAEMON
25 echo -n "Starting $DAEMON respawner"
26 /etc/init.d/daemon_respawner.sh -p $PIDFILE \ -m root@localhost \
27 -r http://localhost:58085/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)