]> matita.cs.unibo.it Git - helm.git/commitdiff
added control script to start/stop broker
authorStefano Zacchiroli <zack@upsilon.cc>
Wed, 19 Feb 2003 13:37:12 +0000 (13:37 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Wed, 19 Feb 2003 13:37:12 +0000 (13:37 +0000)
helm/hbugs/broker/hbugs_broker_ctl.sh [new file with mode: 0755]

diff --git a/helm/hbugs/broker/hbugs_broker_ctl.sh b/helm/hbugs/broker/hbugs_broker_ctl.sh
new file mode 100755 (executable)
index 0000000..8730a1c
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+daemon="hbugs_broker"
+if [ "$1" = "--help" -o "$1" = "" ]; then
+   echo "ctl.sh { start | stop | --help }"
+   exit 0
+fi
+if [ "$1" = "start" ]; then
+   . ../../script.sh
+   echo -n "Starting HBugs broker ... "
+   ./$daemon &> run/$daemon.LOG &
+   echo "done!"
+elif [ "$1" = "stop" ]; then
+   echo -n "Stopping HBugs broker ... "
+   killall $daemon
+   echo "done!"
+fi