7 PID
=$
(pidof
-o %PPID
/usr
/sbin
/bitlbee
)
8 install -o bitlbee
-g bitlbee
-d -m 755 /var
/run
/bitlbee
12 stat_busy
"Starting $name daemon"
14 rm -f /var
/run
/bitlbee
/bitlbee.pid
15 su
-s /bin
/sh
-c '/usr/sbin/bitlbee -F' bitlbee
19 } ||
{ stat_fail
; exit 1; }
22 stat_busy
"Stopping $name daemon"
26 rm -f /var
/run
/bitlbee
/bitlbee.pid
29 } ||
{ stat_fail
; exit 1; }
37 echo "usage: $0 {start|stop|restart}"