3 # mcollective Application Server for STOMP based agents
5 # description: mcollective lets you build powerful Stomp compatible middleware clients in ruby without having to worry too
6 # much about all the setup and management of a Stomp connection, it also provides stats, logging and so forth
10 RUBYLIB=/opt/csw/lib/ruby/site_ruby/1.8:$RUBYLIB
13 mcollectived="/opt/csw/sbin/mcollectived"
15 lock="/var/lock/mcollective"
18 pidfile="/var/run/mcollectived.pid"
20 # Check that binary exists
21 if [ ! -f $mcollectived ]
23 echo "mcollectived binary not found"
27 # See how we were called.
30 if [ -f ${lock} ]; then
31 # we were not shut down correctly
32 if [ -s ${pidfile} ]; then
33 kill `cat ${pidfile}` >/dev/null 2>&1
43 ${mcollectived} --pid=${pidfile} --config="/etc/mcollective/server.cfg"
52 if [ -s ${pidfile} ]; then
53 kill `cat ${pidfile}` >/dev/null 2>&1
73 if [ -f ${lock} ]; then
74 if [ -s ${pidfile} ]; then
75 if [ -e /proc/`cat ${pidfile}` ]; then
76 echo "mcollectived (`cat ${pidfile}`) is running"
79 echo "mcollectived (`cat ${pidfile}`) is NOT running"
84 echo "mcollectived: service not started"
89 echo "not implemented"
92 echo "Usage: $0 {start|stop|restart|condrestart|status}"