aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2018-01-26 10:16:16 +0000
committerBernard Spil <brnrd@FreeBSD.org>2018-01-26 10:16:16 +0000
commit996a30a1677613ff7f4893295e7053cb9162aa7f (patch)
tree4c8ae76b0aa034a06a5711fe4d4317a829f88d95
parent3683e4259d421d2c5a6ffeaa7e0244f92c6d70ee (diff)
downloadports-996a30a1677613ff7f4893295e7053cb9162aa7f.tar.gz
ports-996a30a1677613ff7f4893295e7053cb9162aa7f.zip
Notes
-rw-r--r--dns/unbound/files/unbound.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/dns/unbound/files/unbound.in b/dns/unbound/files/unbound.in
index 932ceee95ec6..5063dbfcd314 100644
--- a/dns/unbound/files/unbound.in
+++ b/dns/unbound/files/unbound.in
@@ -23,13 +23,15 @@ rcvar=unbound_enable
command="%%PREFIX%%/sbin/unbound"
extra_commands="reload"
start_precmd="start_precmd"
-reload_precmd="%%PREFIX%%/sbin/unbound-checkconf >/dev/null"
+reload_precmd="%%PREFIX%%/sbin/unbound-checkconf ${unbound_conf} >/dev/null"
load_rc_config $name
pidfile=${unbound_pidfile:-"%%PREFIX%%/etc/unbound/unbound.pid"}
unbound_enable=${unbound_enable:-"NO"}
unbound_anchorflags=${unbound_anchorflags:-""}
+unbound_conf=${unbound_conf:-"%%ETCDIR%%/unbound.conf"}
+unbound_flags=${unbound_flags:-" -c ${unbound_conf}"}
start_precmd()
{
@@ -40,7 +42,7 @@ start_precmd()
su -m unbound -c "%%PREFIX%%/sbin/unbound-anchor ${unbound_anchorflags}"
fi
echo .
- %%PREFIX%%/sbin/unbound-checkconf > /dev/null
+ %%PREFIX%%/sbin/unbound-checkconf ${unbound_conf} > /dev/null
return $?
}