diff options
Diffstat (limited to 'dns/unbound/files/unbound.in')
-rw-r--r-- | dns/unbound/files/unbound.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dns/unbound/files/unbound.in b/dns/unbound/files/unbound.in index 94d3807870b3..874f233a2a49 100644 --- a/dns/unbound/files/unbound.in +++ b/dns/unbound/files/unbound.in @@ -17,10 +17,18 @@ rcvar=unbound_enable command="%%PREFIX%%/sbin/unbound" extra_commands="reload" +start_precmd="start_unbound_anchor" load_rc_config $name pidfile=${unbound_pidfile:-"%%PREFIX%%/etc/unbound/unbound.pid"} unbound_enable=${unbound_enable:-"NO"} +start_unbound_anchor() +{ + echo -n "Obtaining a trust anchor:" + %%PREFIX%%/sbin/unbound-anchor + echo . +} + run_rc_command "$1" |