From 43d3e47fb558fbf20a27a817d1b35da29b121c84 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Wed, 15 Jan 2003 14:28:48 +0000 Subject: [PATCH] snapshot --- helm/scripts/init.d/etc_default_helm_mowgli | 2 + helm/scripts/init.d/helm-http-getter | 2 +- helm/scripts/init.d/helm-http-getter_mowgli | 6 +- helm/scripts/init.d/helm-search-engine_mowgli | 59 +++++++++++++++++++ helm/scripts/init.d/helm-uwobo_mowgli | 59 +++++++++++++++++++ 5 files changed, 124 insertions(+), 4 deletions(-) create mode 100755 helm/scripts/init.d/helm-search-engine_mowgli create mode 100755 helm/scripts/init.d/helm-uwobo_mowgli diff --git a/helm/scripts/init.d/etc_default_helm_mowgli b/helm/scripts/init.d/etc_default_helm_mowgli index af0ac44a5..daa04d1b8 100644 --- a/helm/scripts/init.d/etc_default_helm_mowgli +++ b/helm/scripts/init.d/etc_default_helm_mowgli @@ -7,6 +7,8 @@ DAEMONS=" helm-proof-checker_mowgli helm-uri-set-queue_mowgli helm-draw-graph_mowgli + helm-search-engine_mowgli + helm-uwobo_mowgli " # script used to define a good(TM) environment for daemons diff --git a/helm/scripts/init.d/helm-http-getter b/helm/scripts/init.d/helm-http-getter index 87f7a5b4b..ac9c2cc0a 100755 --- a/helm/scripts/init.d/helm-http-getter +++ b/helm/scripts/init.d/helm-http-getter @@ -4,7 +4,7 @@ # # by --Zack # Created: Tue, 8 Oct 2002 17:18:17 +0200 -# Last-Modified: Wed, 9 Oct 2002 11:12:01 +0200 +# Last-Modified: Tue, 8 Oct 2002 17:18:17 +0200 DAEMON=/projects/helm/http_getter/http_getter.pl USAGE="Usage: /etc/init.d/helm-http-getter { start | stop | restart }" diff --git a/helm/scripts/init.d/helm-http-getter_mowgli b/helm/scripts/init.d/helm-http-getter_mowgli index 7eff55e32..25433a23a 100755 --- a/helm/scripts/init.d/helm-http-getter_mowgli +++ b/helm/scripts/init.d/helm-http-getter_mowgli @@ -1,12 +1,12 @@ #!/bin/sh # -# init.d script for http_getter.pl +# init.d script for http_getter # # by --Zack # Created: Tue, 8 Oct 2002 17:18:17 +0200 -# Last-Modified: Wed, 9 Oct 2002 11:12:01 +0200 +# Last-Modified: Wed, 8 Jan 2003 12:09:41 +0100 -DAEMON=/projects/helm/http_getter/http_getter.pl +DAEMON="/projects/helm/http_getter_mowgli/http_getter" USAGE="Usage: /etc/init.d/helm-http-getter_mowgli { start | stop | restart }" ENVSCRIPT="" diff --git a/helm/scripts/init.d/helm-search-engine_mowgli b/helm/scripts/init.d/helm-search-engine_mowgli new file mode 100755 index 000000000..7864db7cb --- /dev/null +++ b/helm/scripts/init.d/helm-search-engine_mowgli @@ -0,0 +1,59 @@ +#!/bin/sh +# +# init.d script for HELM searchEngine +# +# by --Zack +# Created: Fri, 22 Nov 2002 15:51:25 +0100 +# Last-Modified: Fri, 22 Nov 2002 15:51:25 +0100 + +DAEMON=/projects/helm/V7_mowgli/helm/searchEngine/searchEngine.opt +USAGE="Usage: /etc/init.d/helm-search-engine_mowgli { 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 --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 + diff --git a/helm/scripts/init.d/helm-uwobo_mowgli b/helm/scripts/init.d/helm-uwobo_mowgli new file mode 100755 index 000000000..a65df3252 --- /dev/null +++ b/helm/scripts/init.d/helm-uwobo_mowgli @@ -0,0 +1,59 @@ +#!/bin/sh +# +# init.d script for http_getter +# +# by --Zack +# Created: Wed, 15 Jan 2003 15:14:07 +0100 +# Last-Modified: Wed, 15 Jan 2003 15:14:07 +0100 + +DAEMON="/projects/helm/uwobo_mowgli/uwobo" +USAGE="Usage: /etc/init.d/helm-uwobo_mowgli { 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 + -- 2.39.2