6 PID
=`cat /var/run/goagent.pid 2>/dev/null`
9 stat_busy
"Starting goagent"
10 if [ -z "$PID" ]; then
11 /opt
/goagent
/local
/proxy.py
&> /var
/log
/goagent.log
&
12 echo $
! > /var
/run
/goagent.pid
22 stat_busy
"Stopping goagent"
23 if [ ! -z "$PID" ]; then
24 kill $PID &> /dev
/null
25 rm /var
/run
/goagent.pid
39 echo "usage: $0 {start|stop|restart}"