6 PID
=`pidof -o %PPID /usr/bin/aped`
9 stat_busy
"Starting AJAX Push Engine"
10 if [ -z "$PID" ]; then
11 date >> /var
/log
/aped.log
12 /usr
/bin
/aped
--cfg /etc
/ape
/ape.conf
&>>/var
/log
/aped.log
&
14 if [ ! -z "$PID" -o $?
-gt 0 ]; then
22 stat_busy
"Stopping AJAX Push Engine"
23 [ ! -z "$PID" ] && kill $PID &> /dev
/null
32 stat_busy
"Killing AJAX Push Engine"
33 [ ! -z "$PID" ] && kill -9 $PID &> /dev
/null
43 echo "usage: $0 {start|stop|restart}"