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