6 PIDFILE
=/var
/run
/cloudkick-agent.pid
8 PID
=`cat PIDFILE 2>/dev/null`
12 stat_busy
"Starting cloudkick-agent"
13 [ -z "$PID" ] && /usr
/sbin
/cloudkick-agent
--daemon -c /etc
/cloudkick.conf
-p $PIDFILE & &> /dev
/null
17 add_daemon cloudkick-agent
22 stat_busy
"Stopping cloudkick-agent"
23 [ ! -z "$PID" ] && kill $PID &> /dev
/null
28 rm_daemon cloudkick-agent
38 echo "usage: $0 {start|stop|restart}"