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/V7_mowgli/helm/searchEngine/searchEngine.opt
10 USAGE="Usage: /etc/init.d/helm-search-engine_mowgli { start | stop | restart }"
13 if [ -f /etc/default/helm_mowgli ]; then
14 . /etc/default/helm_mowgli
16 if ! [ -f "$ENVSCRIPT" ]; then
17 echo "Can't find environment script '$ENVSCRIPT'"
20 . $ENVSCRIPT &> /dev/null
22 NAME=`basename $DAEMON`
23 PIDFILE=/projects/helm/run/"$NAME"_mowgli.pid
26 echo -n "Starting $DAEMON ... "
28 --start --pidfile $PIDFILE --make-pidfile \
29 --chuid $OWNER --background --exec $DAEMON
34 echo -n "Stopping $DAEMON ... "
35 start-stop-daemon --stop --pidfile $PIDFILE && \
36 (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi)