3 # init.d script for HELM proof checker
5 # by --Zack <zack@cs.unibo.it>
6 # Created: Wed, 9 Oct 2002 11:12:01 +0200
7 # Last-Modified: Wed, 13 Nov 2002 18:30:39 +0100
9 DAEMON=/projects/helm/daemons/proofChecker/proofChecker.opt
10 USAGE="Usage: /etc/init.d/helm-proof-checker { 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)