3
# mcollective Application Server for STOMP based agents
7
# description: mcollective lets you build powerful Stomp compatible middleware clients in ruby without having to worry too
8
# much about all the setup and management of a Stomp connection, it also provides stats, logging and so forth
3
# mcollective Application Server for STOMP based agents
7
# description: mcollective lets you build powerful Stomp compatible middleware clients in ruby without having to worry too
8
# much about all the setup and management of a Stomp connection, it also provides stats, logging and so forth
11
11
### BEGIN INIT INFO
12
12
# Provides: mcollective
27
27
if [ -d /var/lock/subsys ]; then
28
# RedHat/CentOS/etc who use subsys
29
lock="/var/lock/subsys/mcollective"
28
# RedHat/CentOS/etc who use subsys
29
lock="/var/lock/subsys/mcollective"
32
lock="/var/lock/mcollective"
32
lock="/var/lock/mcollective"
40
40
. /lib/lsb/init-functions
42
42
# Check that binary exists
43
if ! [ -f $mcollectived ]
43
if ! [ -f $mcollectived ]
45
echo "mcollectived binary not found"
45
echo "mcollectived binary not found"
49
49
# See how we were called.
52
echo -n "Starting mcollective: "
54
if [ -f ${lock} ]; then
55
# we were not shut down correctly
56
if [ -s ${pidfile} ]; then
57
kill `cat ${pidfile}` >/dev/null 2>&1
67
${mcollectived} --pid=${pidfile} --config="/etc/mcollective/server.cfg"
78
echo -n "Shutting down mcollective: "
80
if [ -s ${pidfile} ]; then
81
kill `cat ${pidfile}` >/dev/null 2>&1
102
if [ -f ${lock} ]; then
103
if [ -s ${pidfile} ]; then
104
if [ -e /proc/`cat ${pidfile}` ]; then
105
echo "mcollectived (`cat ${pidfile}`) is running"
108
echo "mcollectived (`cat ${pidfile}`) is NOT running"
113
echo "mcollectived: service not started"
118
echo "not implemented"
121
echo "Usage: mcollectived {start|stop|restart|condrestart|status}"
52
echo -n "Starting mcollective: "
54
if [ -f ${lock} ]; then
55
# we were not shut down correctly
56
if [ -s ${pidfile} ]; then
57
kill `cat ${pidfile}` >/dev/null 2>&1
67
${mcollectived} --pid=${pidfile} --config="/etc/mcollective/server.cfg"
69
success $"mcollectived"
80
echo -n "Shutting down mcollective: "
82
if [ -s ${pidfile} ]; then
83
kill `cat ${pidfile}` >/dev/null 2>&1
104
if [ -f ${lock} ]; then
105
if [ -s ${pidfile} ]; then
106
if [ -e /proc/`cat ${pidfile}` ]; then
107
echo "mcollectived (`cat ${pidfile}`) is running"
110
echo "mcollectived (`cat ${pidfile}`) is NOT running"
115
echo "mcollectived: service not started"
120
echo "not implemented"
123
echo "Usage: mcollectived {start|stop|restart|condrestart|status}"