Commit 74428fce authored by Mike Hibler's avatar Mike Hibler

Add cluster-status wrapper startup. MAINSITE only.

parent 73b89200
......@@ -30,6 +30,7 @@ SUBDIR = rc.d
WINSUPPORT = @WINSUPPORT@
PELABSUPPORT = @PELABSUPPORT@
ELVINCOMPAT = @ELVIN_COMPAT@
TBMAINSITE = @TBMAINSITE@
SYSTEM := $(shell uname -s)
include $(OBJDIR)/Makeconf
......@@ -38,6 +39,9 @@ RC_SCRIPTS = 2.mysql-server.sh 3.mfrisbeed.sh 3.testbed.sh \
2.dhcpd.sh 1.mysql-client.sh 2.tbdbcheck.sh
SUBBOSS_SCRIPTS = 2.dhcpd.sh 3.mfrisbeed-subboss.sh arplock.sh
OPS_SCRIPTS = 3.and.sh 1.mysql-client.sh 1.mysql-server.sh arplock-opsfs.sh
ifeq ($(TBMAINSITE),1)
OPS_SCRIPTS += cluster-status.sh
endif
ifeq ($(ELVINCOMPAT),1)
OPS_SCRIPTS += 2.elvind.sh 3.elvin_gateway.sh
endif
......
#!/bin/sh
# PROVIDE: cluster-status
# REQUIRE: NETWORKING
# BEFORE: apache22
# KEYWORD: nojail shutdown
logfile=@prefix@/log/cluster-status.log
case "$1" in
start|faststart|quietstart|onestart|forcestart)
if [ -x @prefix@/sbin/daemon_wrapper ]; then
echo -n " cluster-status wrapper"
@prefix@/sbin/daemon_wrapper -n cluster-status -l $logfile \
@prefix@/sbin/cluster-status
else
@prefix@/sbin/cluster-status >$logfile 2>&1 &
echo "$!" > /var/run/cluster-status_wrapper.pid
fi
;;
stop|faststop|quietstop|onestop|forcestop)
if [ -r /var/run/cluster-status_wrapper.pid ]; then
kill `cat /var/run/cluster-status_wrapper.pid`
fi
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment