7 PID
=`pidof -o %PPID /usr/sbin/asterisk`
10 stat_busy
"Starting Asterisk"
11 [ -z "$PID" ] && cd /var
/lib
/asterisk
&& /usr
/sbin
/asterisk
-G asterisk
-U asterisk
20 stat_busy
"Stopping Asterisk"
21 [ ! -z "$PID" ] && kill $PID &> /dev
/null
25 rm -f /var
/run
/asterisk
/asterisk.pid
&>/dev
/null
36 echo "usage: $0 {start|stop|restart}"