2 OPTS
="-rs -vvv -l /var/log/yate"
4 # Source function library.
10 # See how we were called.
13 stat_busy
"Starting YATE"
16 yate
-d -p /var
/run
/yate.pid
$OPTS
18 if [ $RETVAL -gt 0 ]; then
27 stat_busy
"Stopping YATE"
28 [ -f /var
/run
/yate.pid
] && kill $
(cat /var
/run
/yate.pid
) > /dev
/null
2>&1
30 if [ $RETVAL -gt 0 ]; then
33 rm -f /var
/run
/yate.pid
40 [ -f /var
/run
/yate.pid
] && echo -e "Yate is running" ||
echo -e "Yate is not running"
48 if [ -f /var
/lock
/yate
]; then
58 echo $
"Usage: $0 {start|stop|status|restart|condrestart|reload}"