8 PID
=/var
/run
/${daemon_name}.pid
12 stat_busy
"Starting ${daemon_name} daemon"
13 [[ -f ${PID} ]] && rm -f ${PID}
14 /usr
/sbin
/ndyndns
-f /etc
/ndyndns.conf
-x
15 if [[ $?
-gt 0 ]]; then
19 add_daemon
${daemon_name}
25 stat_busy
"Stopping ${daemon_name} daemon"
26 [[ -n $
(cat ${PID} 2>/dev
/null
) ]] && kill $
(cat ${PID})
27 if [[ $?
-gt 0 ]]; then
32 rm_daemon
${daemon_name}
44 stat_busy
"Checking ${daemon_name} status"
45 ck_status
${daemon_name}
49 echo "usage: $0 {start|stop|restart|status}"