summaryrefslogtreecommitdiff
path: root/net-im/minbif/files/minbif.initd
blob: 06cac415f61dd1bebe63de38e03cfdad403db15e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

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 $?
}