7 .
/etc
/conf.d
/$daemon_name
9 PID
=$
(pidof
-o %PPID
/usr
/sbin
/$daemon_name)
12 stat_busy
"Starting $daemon_name"
13 [ -z "$PID" ] && /usr
/sbin
/$daemon_name "$RESTUND_ARGS" &> /dev
/null
18 add_daemon
$daemon_name
23 stat_busy
"Stopping $daemon_name"
24 [ ! -z "$PID" ] && kill $PID &> /dev
/null
29 rm_daemon
$daemon_name
39 stat_busy
"Checking $daemon_name status";
40 ck_status
$daemon_name
43 echo "usage: $0 {start|stop|restart|status}"