diff options
author | Jason Wever <weeve@gentoo.org> | 2003-10-16 09:05:36 +0000 |
---|---|---|
committer | Jason Wever <weeve@gentoo.org> | 2003-10-16 09:05:36 +0000 |
commit | a0819f62f115c7c41e679687427bf7c432db6a76 (patch) | |
tree | 012994f1375f65b71a90a533249eab6ff62c8ca6 /net-im/bitlbee/files | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-a0819f62f115c7c41e679687427bf7c432db6a76.tar.gz gentoo-2-a0819f62f115c7c41e679687427bf7c432db6a76.tar.bz2 gentoo-2-a0819f62f115c7c41e679687427bf7c432db6a76.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.confd | 3 | ||||
-rw-r--r-- | net-im/bitlbee/files/bitlbeed.init | 10 |
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" } |