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_mowgli { start | stop | restart }"
12 if [ -f /etc/default/helm_mowgli ]; then
13 . /etc/default/helm_mowgli
16 NAME=`basename $DAEMON`
17 PIDFILE=/var/run/"$NAME"_mowgli.pid
20 echo -n "Starting $DAEMON ... "
22 --start --pidfile $PIDFILE --make-pidfile \
23 --chuid $OWNER --background --exec $DAEMON
28 echo -n "Stopping $DAEMON ... "
29 start-stop-daemon --stop --pidfile $PIDFILE && \
30 (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi)