From 59a55ce2681e6853d1f5bb4027b1cc362f20fbe6 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Wed, 19 Feb 2003 13:37:12 +0000 Subject: [PATCH] added control script to start/stop broker --- helm/hbugs/broker/hbugs_broker_ctl.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 helm/hbugs/broker/hbugs_broker_ctl.sh 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 -- 2.39.2