7 pidof
-o %PPID
/usr
/sbin
/bitlbee
12 stat_busy
'Starting Bitlbee'
14 if [ -z "$PID" ]; then
15 [ -f /var
/run
/bitlbee
/bitlbee.pid
] && rm -f /var
/run
/bitlbee
/bitlbee.pid
16 su
-s /bin
/sh
-c '/usr/sbin/bitlbee -F' 'bitlbee'
31 stat_busy
'Stopping Bitlbee'
34 [ ! -z "$PID" ] && kill $PID &> /dev
/null
39 rm -f /var
/run
/bitlbee
/bitlbee.pid
&> /dev
/null
52 echo "usage: $0 {start|stop|restart}"