diff options
Diffstat (limited to 'dns/powerdns-recursor/files/pdns-recursor.in')
-rw-r--r-- | dns/powerdns-recursor/files/pdns-recursor.in | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dns/powerdns-recursor/files/pdns-recursor.in b/dns/powerdns-recursor/files/pdns-recursor.in new file mode 100644 index 000000000000..4056deaf7961 --- /dev/null +++ b/dns/powerdns-recursor/files/pdns-recursor.in @@ -0,0 +1,35 @@ +#!/bin/sh +# +# $$ +# + +# PROVIDE: pdns_recursor +# REQUIRE: DAEMON +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable pdns_recursor: +# +#pdns_recursor_enable="YES" +# +# See pdns_recursor(8) 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/pdns/recursor.conf"} +pdns_recursor_flags=${pdns_recursor_flags:-""} + +load_rc_config ${name} + +required_files=${pdns_recursor_conf} + +run_rc_command "$1" |