From: Stefano Zacchiroli Date: Wed, 19 Feb 2003 13:37:12 +0000 (+0000) Subject: added control script to start/stop broker X-Git-Tag: V_0_0_4_1~37 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=59a55ce2681e6853d1f5bb4027b1cc362f20fbe6;p=helm.git added control script to start/stop broker --- diff --git a/helm/hbugs/broker/hbugs_broker_ctl.sh b/helm/hbugs/broker/hbugs_broker_ctl.sh new file mode 100755 index 000000000..8730a1cb5 --- /dev/null +++ b/helm/hbugs/broker/hbugs_broker_ctl.sh @@ -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