aboutsummaryrefslogtreecommitdiffstats
path: root/debian/bitlbee.init
diff options
context:
space:
mode:
authorSven Moritz Hallberg <pesco@khjk.org>2010-06-03 13:00:45 +0200
committerSven Moritz Hallberg <pesco@khjk.org>2010-06-03 13:00:45 +0200
commit814aa52228c7cad1d036c1a6dc5ea03cce61c048 (patch)
tree7db06b9191f00b086f25789a0a040d15cef580cf /debian/bitlbee.init
parent5f8ab6a9adf09ea7c07f728227bdb6d3953588f1 (diff)
parentf4bcc223fea70de8555bbc4d2caf48e0476c0e13 (diff)
merge in bitlbee 1.2.6
Diffstat (limited to 'debian/bitlbee.init')
-rwxr-xr-xdebian/bitlbee.init14
1 files changed, 3 insertions, 11 deletions
diff --git a/debian/bitlbee.init b/debian/bitlbee.init
index 1ab1bc43..be1dcd66 100755
--- a/debian/bitlbee.init
+++ b/debian/bitlbee.init
@@ -37,18 +37,10 @@ fi
#
d_start() {
# Make sure BitlBee can actually write its PID...
- touch /var/run/bitlbee.pid
- chown bitlbee: /var/run/bitlbee.pid
+ touch $PIDFILE
+ chown bitlbee: $PIDFILE
- # Clean up after the bug between 1.2-5 and 1.2.1-2 where BitlBee ran
- # as root. (#494656 and #495877) Fixing this in the postinst script
- # is not enough since the user will restart his BitlBee after up-
- # grading the package, and the BitlBee running as root will then
- # save its settings, re-setting ownership of the file to root.
- # TODO: Remove this after a few revisions.
- find /var/lib/bitlbee -uid 0 -name '*.xml' -exec chown bitlbee: {} \;
-
- start-stop-daemon --start --quiet \
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
--exec $DAEMON -- -p $BITLBEE_PORT -P $PIDFILE $BITLBEE_OPTS
}