From cec37e643f4889b4b8652bdfce886b1e5e81f2bd Mon Sep 17 00:00:00 2001 From: freaj Date: Mon, 30 Mar 2015 11:08:25 +0200 Subject: openrc-misc: add new package to [pcr] --- pcr/openrc-misc/bitlbee.initd | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pcr/openrc-misc/bitlbee.initd (limited to 'pcr/openrc-misc/bitlbee.initd') diff --git a/pcr/openrc-misc/bitlbee.initd b/pcr/openrc-misc/bitlbee.initd new file mode 100644 index 000000000..235b3744e --- /dev/null +++ b/pcr/openrc-misc/bitlbee.initd @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or +# later +# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/files/bitlbee.initd,v 1.4 2013/01/08 14:25:21 cedk Exp $ + +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} -- -P ${PIDFILE} \ + ${BITLBEE_OPTS} + eend $? +} + +stop() { + ebegin "Stopping bitlbee" + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} + eend $? +} + -- cgit v1.2.3-54-g00ecf