]> matita.cs.unibo.it Git - helm.git/commitdiff
snapshot
authorStefano Zacchiroli <zack@upsilon.cc>
Wed, 15 Jan 2003 14:28:48 +0000 (14:28 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Wed, 15 Jan 2003 14:28:48 +0000 (14:28 +0000)
helm/scripts/init.d/etc_default_helm_mowgli
helm/scripts/init.d/helm-http-getter
helm/scripts/init.d/helm-http-getter_mowgli
helm/scripts/init.d/helm-search-engine_mowgli [new file with mode: 0755]
helm/scripts/init.d/helm-uwobo_mowgli [new file with mode: 0755]

index af0ac44a57e82be8cac5480e06f7b0f75c982a21..daa04d1b8c2f3ea5e747e2062304a1af2994c6e9 100644 (file)
@@ -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
index 87f7a5b4b6da38ba8ec8c9d6705b3243e0fc6621..ac9c2cc0a67ed0bd38f29691936e20a5ca4f3432 100755 (executable)
@@ -4,7 +4,7 @@
 #
 # by --Zack <zack@cs.unibo.it>
 # 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 }"
index 7eff55e327474f26899f0dd4072e67a6e21d659a..25433a23a2f587f2dc3bb6e700bdbc5f558373a9 100755 (executable)
@@ -1,12 +1,12 @@
 #!/bin/sh
 #
-# init.d script for http_getter.pl
+# init.d script for http_getter
 #
 # by --Zack <zack@cs.unibo.it>
 # 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 (executable)
index 0000000..7864db7
--- /dev/null
@@ -0,0 +1,59 @@
+#!/bin/sh
+#
+# init.d script for HELM searchEngine
+#
+# by --Zack <zack@cs.unibo.it>
+# 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 (executable)
index 0000000..a65df32
--- /dev/null
@@ -0,0 +1,59 @@
+#!/bin/sh
+#
+# init.d script for http_getter
+#
+# by --Zack <zack@cs.unibo.it>
+# 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
+