diff --git a/conf.d/._cfg0000_bitlbee b/conf.d/._cfg0000_bitlbee new file mode 100644 index 0000000..d581222 --- /dev/null +++ b/conf.d/._cfg0000_bitlbee @@ -0,0 +1,8 @@ +# Bitlbee options (see /usr/sbin/bitlbee -h) +BITLBEE_OPTS="-F" + +# By default, the bitlbee init script will attempt to stop +# all bitlbee-owned processes, including per-client forks. +# Setting this to "no" tells the init script to only +# stop the main bitlbee process. +BITLBEE_STOP_ALL="yes" diff --git a/init.d/._cfg0000_bitlbee b/init.d/._cfg0000_bitlbee new file mode 100755 index 0000000..f2c7984 --- /dev/null +++ b/init.d/._cfg0000_bitlbee @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or +# later +# $Id$ + +DAEMON=/usr/sbin/bitlbee +PIDFILE=/var/run/bitlbee/bitlbee.pid + +depend() { + need logger net +} + +start () { + ebegin "Starting bitlbee" + checkpath -d -m 0755 -o bitlbee:bitlbee $(dirname ${PIDFILE}) + start-stop-daemon --start --quiet \ + -u bitlbee:bitlbee --exec ${DAEMON} --pidfile ${PIDFILE} \ + -- -P ${PIDFILE} ${BITLBEE_OPTS} + eend $? +} + +stop() { + ebegin "Stopping bitlbee" + local pidfile= + yesno ${BITLBEE_STOP_ALL:-YES} || + pidfile="--pidfile ${PIDFILE}" + start-stop-daemon --stop --quiet ${pidfile} -u bitlbee:bitlbee + eend $? +} +