summaryrefslogtreecommitdiff
path: root/net-dns/pdns-recursor/files/precursor
blob: 8c6cb9a3d894df4f6cb8e0f4ad908b27234b08e9 (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
28
#!/sbin/openrc-run
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

extra_started_commands="ping"

depend() {
	need net
}

start() {
	ebegin "Starting PowerDNS Recursor"
	/usr/sbin/pdns_recursor --daemon=yes &>/dev/null
	eend $?
}

stop() {
	ebegin "Stopping PowerDNS Recursor"
	/usr/sbin/rec_control quit &>/dev/null
	eend $?
}

ping() {
	ebegin "Pinging PowerDNS Recursor"
	/usr/sbin/rec_control ping &>/dev/null
	eend $?
}