summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wever <weeve@gentoo.org>2003-10-16 09:05:36 +0000
committerJason Wever <weeve@gentoo.org>2003-10-16 09:05:36 +0000
commit08e38000bd1284329c5c074256f84183885f2985 (patch)
tree7bea0e74b55710238e6714e2ecbb93e49060dc4a /net-im/bitlbee/files
parent*** empty log message *** (diff)
downloadhistorical-08e38000bd1284329c5c074256f84183885f2985.tar.gz
historical-08e38000bd1284329c5c074256f84183885f2985.tar.bz2
historical-08e38000bd1284329c5c074256f84183885f2985.zip
Fixed the bitlbeed init script to run bitlbeed as user nobody (similarly to how it's run in the xinetd.d config). Resolves bug #30552.
Diffstat (limited to 'net-im/bitlbee/files')
-rw-r--r--net-im/bitlbee/files/bitlbeed.confd3
-rw-r--r--net-im/bitlbee/files/bitlbeed.init10
2 files changed, 10 insertions, 3 deletions
diff --git a/net-im/bitlbee/files/bitlbeed.confd b/net-im/bitlbee/files/bitlbeed.confd
index cb00d3b6ac89..0d75efd0c017 100644
--- a/net-im/bitlbee/files/bitlbeed.confd
+++ b/net-im/bitlbee/files/bitlbeed.confd
@@ -1,3 +1,6 @@
+# location of bitlbeed executable
+BITLBEED_EXEC=/usr/bin/bitlbeed
+#
# output from bitlbeed -h
#
# Usage: bitlbeed [-i <interface>] [-p <port>] [-n <num>] <command> <args...>
diff --git a/net-im/bitlbee/files/bitlbeed.init b/net-im/bitlbee/files/bitlbeed.init
index 0471d0bdf99f..5cd6546d9099 100644
--- a/net-im/bitlbee/files/bitlbeed.init
+++ b/net-im/bitlbee/files/bitlbeed.init
@@ -2,7 +2,7 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or
# later
-# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/files/bitlbeed.init,v 1.1 2003/09/10 00:49:58 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/files/bitlbeed.init,v 1.2 2003/10/16 09:05:22 weeve Exp $
depend() {
@@ -11,13 +11,17 @@ depend() {
start () {
ebegin "Starting bitlbeed"
- /usr/bin/bitlbeed ${BITLBEED_OPTIONS} /usr/sbin/bitlbee
+ start-stop-daemon --start --startas ${BITLBEED_EXEC} \
+ -c nobody:nobody --exec ${BITLBEED_EXEC} -- \
+ ${BITLBEED_OPTIONS} /usr/sbin/bitlbee
eend $? "Failed to start bitlbeed"
}
stop() {
ebegin "Stopping bitlbeed"
- killall -9 bitlbeed &>/dev/null
+ #killall -9 bitlbeed &>/dev/null
+ start-stop-daemon --stop --signal 9 \
+ --exec ${BITLBEED_EXEC}
eend $? "Failed to stop bitlbeed"
}