6 PID
=$
(pidof
-x $
(type -p funcd
))
9 stat_busy
"Starting Func Daemon"
10 if [ -z "$PID" ]; then
11 /usr
/bin
/funcd
--daemon &
13 if [ ! -z "$PID" -o $?
-gt 0 ]; then
16 PID
=$
(pidof
-x $
(type -p funcd
))
17 echo $PID > /var
/run
/funcd.pid
23 stat_busy
"Stopping Func Daemon"
24 [ ! -z "$PID" ] && kill $PID &> /dev
/null
38 echo "usage: $0 {start|stop|restart}"