aboutsummaryrefslogtreecommitdiff
path: root/dns/powerdns-devel/files/pdns_recursor.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'dns/powerdns-devel/files/pdns_recursor.sh.in')
-rw-r--r--dns/powerdns-devel/files/pdns_recursor.sh.in35
1 files changed, 35 insertions, 0 deletions
diff --git a/dns/powerdns-devel/files/pdns_recursor.sh.in b/dns/powerdns-devel/files/pdns_recursor.sh.in
new file mode 100644
index 000000000000..006f16e21a12
--- /dev/null
+++ b/dns/powerdns-devel/files/pdns_recursor.sh.in
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: pdns_recursor
+# REQUIRE: DAEMON
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable dovecot:
+#
+#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"