summaryrefslogtreecommitdiff
blob: 37cc7031b01b36368301743c87523056fc4ca6ea (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
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/minbif/files/minbif.initd,v 1.1 2009/11/24 19:22:35 cedk Exp $

MINBIF_EXEC="/usr/bin/minbif"

depend() {
	need logger net
}

start() {
	ebegin "Starting minbif"
	start-stop-daemon --start --startas ${MINBIF_EXEC} \
		-c minbif:minbif --exec ${MINBIF_EXEC} -- \
		/etc/minbif/minbif.conf
	eend $?
}

stop() {
	ebegin "Stopping minbif"
	start-stop-daemon --stop --exec ${MINBIF_EXEC}
	eend $?
}