diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-07-18 12:59:51 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-07-18 12:59:51 +0000 |
commit | 9d658f56fa7fa8f67c127b0f9fffa5941a44cebc (patch) | |
tree | e8cf786d0254d91efac7a565694a85bfe01f4732 /dns/powerdns/files/pdns_recursor.sh.in | |
parent | ecd685d3d657f3521b18d5107dffe948dc41c540 (diff) | |
download | ports-9d658f56fa7fa8f67c127b0f9fffa5941a44cebc.tar.gz ports-9d658f56fa7fa8f67c127b0f9fffa5941a44cebc.zip |
Notes
Diffstat (limited to 'dns/powerdns/files/pdns_recursor.sh.in')
-rw-r--r-- | dns/powerdns/files/pdns_recursor.sh.in | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dns/powerdns/files/pdns_recursor.sh.in b/dns/powerdns/files/pdns_recursor.sh.in new file mode 100644 index 000000000000..006f16e21a12 --- /dev/null +++ b/dns/powerdns/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" |