X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=helm%2Fscripts%2Finit.d%2Fhelm-draw-graph;fp=helm%2Fscripts%2Finit.d%2Fhelm-draw-graph;h=0000000000000000000000000000000000000000;hp=34490799e080c91fd66c00722ae0d4edd683510c;hb=869549224eef6278a48c16ae27dd786376082b38;hpb=89262281b6e83bd2321150f81f1a0583645eb0c8 diff --git a/helm/scripts/init.d/helm-draw-graph b/helm/scripts/init.d/helm-draw-graph deleted file mode 100755 index 34490799e..000000000 --- a/helm/scripts/init.d/helm-draw-graph +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh -# -# init.d script for HELM draw_graph.cgi -# -# by --Zack -# Created: Wed, 9 Oct 2002 11:12:01 +0200 -# Last-Modified: Wed, 9 Oct 2002 11:12:01 +0200 - -#DAEMON=/projects/helm/graphs/tools/draw_graph.cgi -DAEMON=/projects/helm/graphs/tools/drawGraph.opt -USAGE="Usage: /etc/init.d/helm-draw-graph { start | stop | restart }" - -ENVSCRIPT="" -if [ -f /etc/default/helm ]; then - . /etc/default/helm -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.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 -