summaryrefslogtreecommitdiff
blob: 7e0b143d395adf2fbff99f36f23afde235699d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or
# later
# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/files/bitlbeed.initd,v 1.1 2007/09/05 21:35:23 cedk Exp $

BITLBEED_EXEC=/usr/bin/bitlbeed

depend() {
	need logger net
}

start () {
	ebegin "Starting bitlbeed"
	start-stop-daemon --start --startas ${BITLBEED_EXEC} \
		-c bitlbee:bitlbee  --exec ${BITLBEED_EXEC} -- \
		${BITLBEED_OPTS} /usr/sbin/bitlbee
	eend $?
}

stop() {
	ebegin "Stopping bitlbeed"
	start-stop-daemon --stop --signal 9 \
		--exec ${BITLBEED_EXEC}
	eend $?
}