# See how we were called.
case "$1" in
start|stop|restart|reload)
start|restart)
service messagebus status >/dev/null
if [ $? == 0 ] ; then
$1
else
echo "The service messagebus don't running and the $SERVICE can't start. Please start service messagebus before."
fi
;;
stop|reload)
condstop)