6 PID
=$
(pidof
-o %PPID
/usr
/sbin
/afpd
)
9 stat_busy
"Starting afpd Daemon"
10 [ -z "$PID" ] && /usr
/sbin
/afpd
14 PID
=$
(pidof
-o %PPID
/usr
/sbin
/afpd
)
15 echo "$PID" > /var
/run
/afpd.pid
21 stat_busy
"Stopping afpd Daemon"
22 [ ! -z "$PID" ] && kill "$PID" &> /dev
/null
36 echo "usage: $0 {start|stop|restart}"