3 daemon_name
=rabbitmq-server
10 stat_busy
"Starting $daemon_name daemon"
13 /usr
/sbin
/rabbitmq-server
-detached
19 add_daemon
$daemon_name
25 stat_busy
"Stopping $daemon_name daemon"
27 /usr
/sbin
/rabbitmqctl stop
33 rm_daemon
$daemon_name
45 stat_busy
"Checking $daemon_name status";
46 ck_status
$daemon_name
50 echo "usage: $0 {start|stop|restart|status}"