aboutsummaryrefslogtreecommitdiff
path: root/dns/powerdns-devel/files/pdns_recursor.in
blob: 96bf4743c6389752872db5f9a60504261d76d73e (plain) (blame)
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
29
30
31
32
33
34
35
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/dns/powerdns-devel/files/Attic/pdns_recursor.in,v 1.2 2006-02-20 20:46:57 dougb Exp $
#

# PROVIDE: pdns_recursor
# REQUIRE: DAEMON
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable pdns_recursor:
#
#pdns_recursor_enable="YES"
#
# See http://rtfm.powerdns.com for flags.
#

. %%RC_SUBR%%

name=pdns_recursor
rcvar=`set_rcvar`

command=%%PREFIX%%/sbin/pdns_recursor

# set defaults

pdns_recursor_enable=${pdns_recursor_enable:-"NO"}
pdns_recursor_conf=${pdns_recursor_conf:-"%%PREFIX%%/etc/recursor.conf"}
pdns_recursor_flags=${pdns_recursor_flags:-""}

load_rc_config ${name}

required_files=${pdns_recursor_conf}

run_rc_command "$1"