10 stat_busy
"Starting $daemon_name daemon"
11 if [ ! -f /var
/run
/$daemon_name.wmx0.pid
] && $daemon_name -b &>/dev
/null
; then
12 add_daemon
$daemon_name
21 stat_busy
"Stopping $daemon_name daemon"
22 [ -f /var
/run
/$daemon_name.wmx0.pid
] && read PID
</var
/run
/$daemon_name.wmx0.pid
23 if kill $PID &>/dev
/null
; then
24 rm_daemon
$daemon_name
33 stat_busy
"Restarting $daemon_name daemon"
34 [ -f /var
/run
/$daemon_name.wmx0.pid
] && read PID
</var
/run
/$daemon_name.wmx0.pid
35 if kill -USR1 $PID &>/dev
/null
; then
36 add_daemon
$daemon_name
45 stat_busy
"Checking $daemon_name status";
46 ck_status
$daemon_name
50 echo "usage: $0 {start|stop|restart|status}"