X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fscripts%2Finit.d%2Fhelm-proof-checker_mowgli;fp=helm%2Fscripts%2Finit.d%2Fhelm-proof-checker_mowgli;h=0000000000000000000000000000000000000000;hb=c7514aaa249a96c5fdd39b1123fbdb38d92f20b6;hp=fac6481386e9290fc13782900cf92c9b7fa52507;hpb=1c7fb836e2af4f2f3d18afd0396701f2094265ff;p=helm.git diff --git a/helm/scripts/init.d/helm-proof-checker_mowgli b/helm/scripts/init.d/helm-proof-checker_mowgli deleted file mode 100755 index fac648138..000000000 --- a/helm/scripts/init.d/helm-proof-checker_mowgli +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/sh -# -# init.d script for HELM proof checker -# -# by --Zack -# Created: Wed, 9 Oct 2002 11:12:01 +0200 -# Last-Modified: Wed, 13 Nov 2002 18:30:39 +0100 - -DAEMON=/projects/helm/proofChecker_mowgli/proofChecker.opt -USAGE="Usage: /etc/init.d/helm-proof-checker { start | stop | restart }" - -ENVSCRIPT="" -if [ -f /etc/default/helm_mowgli ]; then - . /etc/default/helm_mowgli -fi -if ! [ -f "$ENVSCRIPT" ]; then - echo "Can't find environment script '$ENVSCRIPT'" - exit 1 -fi -. $ENVSCRIPT &> /dev/null - -NAME=`basename $DAEMON` -PIDFILE=/projects/helm/run/"$NAME"_mowgli.pid - -do_start () { - echo "Starting $DAEMON ..." - start-stop-daemon \ - --start --background --pidfile $PIDFILE --make-pidfile \ - --chuid $OWNER --exec $DAEMON -} - -do_stop () { - echo "Stopping $DAEMON ..." - start-stop-daemon --stop --pidfile $PIDFILE && \ - (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi) -} - -case "$1" in - - start) - do_start - ;; - - stop) - do_stop - ;; - - restart) - do_stop - do_start - ;; - - *) - echo "$USAGE" >&2 - exit 1 - ;; - -esac -