summaryrefslogtreecommitdiff
blob: 4fcc2112cf2ec05c2ca9622edd15df8d8dbae545 (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
#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2 or later

PIDFILE="/var/run/dnrd.pid"

depend() {
	provide dns
	need net
}

start() {
	ebegin "Starting dnrd"
	start-stop-daemon --start \
		--pidfile ${PIDFILE} \
		--exec /usr/sbin/dnrd \
		-- ${DNRD_OPTS}
	eend $?
}

stop() {
	ebegin "Stopping dnrd"
	start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
	eend $?
}