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

depend() {
	need net
}

start() {
	ebegin "Starting deadwood"
	start-stop-daemon --start --quiet --name deadwood --wait 1000 \
		--exec /usr/bin/duende /usr/sbin/Deadwood -- -f /etc/maradns/dwood3rc
	eend $?
}

stop() {
	ebegin "Stopping deadwood"
	start-stop-daemon --stop --quiet --name deadwood --wait 1000 \
		--exec /usr/bin/duende
	eend $?
}