2 # Beanstalkd Archlinux rc.d script
4 # by Chien-An "Zero" Cho
5 # Copyright by hypo, Bigs Lab. (http://htpo.cc/)
9 .
/etc
/conf.d
/beanstalkd
11 PID
=`cat /var/run/beanstalkd.pid 2>/dev/null`
14 stat_busy
"Starting Beanstalkd"
15 [ -z "$PID" ] && /usr
/bin
/beanstalkd
$BEANSTALKD_ARGS
24 stat_busy
"Stopping beanstalkd"
25 [ ! -z "$PID" ] && kill $PID &> /dev
/null
39 echo "usage: $0 {start|stop|restart}"