9 test x
"${asterisk:-NO}" = x
"NO" && exit 0
10 test x
"$asterisk" = x
"DAEMON" && test -x /bin
/mksh
&& exec mksh
-T- $0 start
14 for dir
in run log spool lib keys
; do
15 [ -d /var
/$dir/asterisk
] || mkdir
-p /var
/$dir/asterisk
20 [ -f /var
/run
/asterisk
/asterisk.pid
] && \
21 kill $
(cat /var
/run
/asterisk
/asterisk.pid
) >/dev
/null
2>&1
28 echo "usage: $0 {start | stop | restart}"