6 DAEMON_NAME
="hulamanager"
7 DAEMON_PATH
="/usr/sbin/${DAEMON_NAME}"
9 PID
=`pidof -o %PPID ${DAEMON_NAME}`
12 stat_busy
"Starting ${DAEMON_NAME}"
13 [ -z "$PID" ] && ${DAEMON_PATH} -d
17 add_daemon
${DAEMON_NAME}
22 stat_busy
"Stopping ${DAEMON_NAME}"
23 [ ! -z "$PID" ] && ${DAEMON_PATH} --stop &>/dev
/null
27 rm_daemon
${DAEMON_NAME}
37 echo "usage: $0 {start|stop|restart}"