X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=helm%2Fscripts%2Finit.d%2Fhelm-http-getter;fp=helm%2Fscripts%2Finit.d%2Fhelm-http-getter;h=0000000000000000000000000000000000000000;hp=a6c18ae46e7a3f60ad6f5a58ef5cacdb0efb25ac;hb=1696761e4b8576e8ed81caa905fd108717019226;hpb=5325734bc2e4927ed7ec146e35a6f0f2b49f50c1 diff --git a/helm/scripts/init.d/helm-http-getter b/helm/scripts/init.d/helm-http-getter deleted file mode 100755 index a6c18ae46..000000000 --- a/helm/scripts/init.d/helm-http-getter +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh -# -# init.d script for http_getter -# -# by --Zack -# Created: Tue, 8 Oct 2002 17:18:17 +0200 -# Last-Modified: Fri, 16 Apr 2004 18:21:30 +0200 - -DAEMON="/projects/helm/daemons/http_getter/http_getter.opt" -USAGE="Usage: /etc/init.d/helm-http-getter { start | stop | restart }" - -if [ -f /etc/default/helm ]; then - . /etc/default/helm -fi - -NAME=`basename $DAEMON` -PIDFILE=/var/run/$NAME.pid - -do_start () { - echo -n "Starting $DAEMON" - start-stop-daemon \ - --start --background --pidfile $PIDFILE --make-pidfile \ - --chuid $OWNER --exec $DAEMON - echo "done!" - echo -n "Starting $DAEMON respawner" - /etc/init.d/daemon_respawner.sh -p $PIDFILE \ -m root@localhost \ - -r http://localhost:58081/help -d `basename $0` & - echo "." -} - -do_stop () { - echo -n "Stopping $DAEMON respawner" - /etc/init.d/daemon_respawner.sh -d `basename $0` -s - echo "." - echo -n "Stopping $DAEMON" - start-stop-daemon --stop --pidfile $PIDFILE && \ - (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi) - echo "." -} - -case "$1" in - - start) - do_start - ;; - - stop) - do_stop - ;; - - restart) - do_stop - do_start - ;; - - *) - echo "$USAGE" >&2 - exit 1 - ;; - -esac -