dns/unbound: Fix errors when unbound_conf is set

PR:		228390
Approved by:	maintainer <jaap NLnetLabs nl>

MFH:		2018Q2
This commit is contained in:
Bernard Spil 2018-05-21 19:28:28 +00:00
parent 1852a6ba72
commit feaf078ddb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=470572

View File

@ -23,7 +23,6 @@ rcvar=unbound_enable
command="%%PREFIX%%/sbin/unbound"
extra_commands="reload"
start_precmd="start_precmd"
reload_precmd="%%PREFIX%%/sbin/unbound-checkconf ${unbound_conf} >/dev/null"
load_rc_config $name
@ -33,6 +32,8 @@ unbound_anchorflags=${unbound_anchorflags:-""}
unbound_conf=${unbound_conf:-"%%ETCDIR%%/unbound.conf"}
unbound_flags=${unbound_flags:-" -c ${unbound_conf}"}
reload_precmd="%%PREFIX%%/sbin/unbound-checkconf ${unbound_conf} >/dev/null"
start_precmd()
{
echo -n "Obtaining a trust anchor:"