12 stat_busy
"Starting $DAEMON"
13 [[ -z "$PID" ]] && /usr
/bin
/monkey
-D &>/dev
/null \
14 && { add_daemon
$DAEMON; stat_done
; } \
15 ||
{ stat_fail
; exit 1; }
18 stat_busy
"Stopping $DAEMON"
19 [[ ! -z "$PID" ]] && kill $PID &>/dev
/null \
20 && { rm_daemon
$DAEMON; stat_done
; } \
21 ||
{ stat_fail
; exit 1; }
29 echo "usage: $0 {start|stop|restart}"