]> matita.cs.unibo.it Git - helm.git/blobdiff - components/hbugs/scripts/brokerctl.sh
branch for universe
[helm.git] / components / hbugs / scripts / brokerctl.sh
diff --git a/components/hbugs/scripts/brokerctl.sh b/components/hbugs/scripts/brokerctl.sh
new file mode 100755 (executable)
index 0000000..3da998d
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+daemon="broker"
+if [ "$1" = "--help" -o "$1" = "" ]; then
+   echo "ctl.sh { start | stop | --help }"
+   exit 0
+fi
+if [ "$1" = "start" ]; then
+   echo -n "Starting HBugs broker ... "
+   ./$daemon &> run/$daemon.log &
+   echo "done!"
+elif [ "$1" = "stop" ]; then
+   echo -n "Stopping HBugs broker ... "
+   killall -9 $daemon
+   echo "done!"
+fi