blob: 80e851d064e1822cd0bb47df367474d40cb669a5 (
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
|
#!/sbin/openrc-run
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/files/pdns,v 1.10 2007/05/07 20:19:18 swegener Exp $
name=pdns-recursor
daemon=/usr/sbin/pdns_recursor
recursor_control=/usr/bin/rec_control
extra_started_commands="dump reload"
depend() {
need net
after firewall
}
start() {
ebegin "Starting PowerDNS recursor"
${daemon}
eend $?
}
stop() {
ebegin "Stopping PowerDNS recursor"
${recursor_control} quit &>/dev/null
eend $?
}
|