6 PID
=`pidof -o %PPID /usr/sbin/mt-daapd`
9 stat_busy
"Starting mt-daapd"
10 [ -z "$PID" ] && /usr
/sbin
/mt-daapd
14 echo $PID > /var
/run
/mt-daapd.pid
20 stat_busy
"Stopping mt-daapd"
21 [ ! -z "$PID" ] && kill $PID &> /dev
/null
25 rm /var
/run
/mt-daapd.pid
36 echo "usage: $0 {start|stop|restart}"