blob: de05f8121c6cb14449652b2da95e08d22a97c363 (
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
29
30
31
32
33
34
35
36
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: pdns_recursor
# REQUIRE: NETWORKING
# BEFORE: SERVERS
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable pdns_recursor:
#
# pdns_recursor_enable="YES"
# pdns_recursor_flags="<set as needed>"
#
# See pdns_recursor(8) for flags.
#
. /etc/rc.subr
name=pdns_recursor
rcvar=pdns_recursor_enable
load_rc_config ${name}
pdns_recursor_enable=${pdns_recursor_enable:-"NO"}
pdns_recursor_conf=${pdns_recursor_conf:-"%%PREFIX%%/etc/pdns/recursor.conf"}
required_files=${pdns_recursor_conf}
pidfile=/var/run/pdns-recursor/${name}.pid
command=%%PREFIX%%/sbin/${name}
command_args="--daemon"
run_rc_command "$1"
|