diff options
author | Eric Luehrsen <ericluehrsen@gmail.com> | 2018-06-28 20:41:37 -0400 |
---|---|---|
committer | Eric Luehrsen <ericluehrsen@gmail.com> | 2018-07-29 23:24:09 -0400 |
commit | 408047628eb7a3605302e1ee410ddfbee01d5c83 (patch) | |
tree | 262bdc1280f91cfcedc14f1b4c00be04ed45871f /net/unbound/files/unbound.init | |
parent | 7bbec3b06b05503245766c628969d57e32fe6591 (diff) |
unbound: add UCI for forward stub and auth zone clauses
With growing interest, DNS over TLS can be setup in Unbounds foward-zone:
clause. A broader UCI solution is added to support forward-, stub-, and
auth- zone clauses in a new 'zone' section. This implentation required
reworking scripts, because they did not scale. 'forward_domain' and
'prefetch_root' options are removed, and superceded by 'zone' section.
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
Diffstat (limited to 'net/unbound/files/unbound.init')
-rwxr-xr-x | net/unbound/files/unbound.init | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/unbound/files/unbound.init b/net/unbound/files/unbound.init index 2f93b4d65..f12e6831c 100755 --- a/net/unbound/files/unbound.init +++ b/net/unbound/files/unbound.init @@ -17,14 +17,14 @@ PROG=/usr/sbin/unbound ############################################################################## boot() { - UNBOUND_BOOT=1 + UB_BOOT=1 start "$@" } ############################################################################## start_service() { - if [ -n "$UNBOUND_BOOT" ] ; then + if [ -n "$UB_BOOT" ] ; then # Load procd triggers (rc) and use event IFUP to really start return 0 fi @@ -35,7 +35,7 @@ start_service() { # standard procd clause procd_open_instance "unbound" - procd_set_param command $PROG -d -c $UNBOUND_CONFFILE + procd_set_param command $PROG -d -c $UB_TOTAL_CONF procd_set_param respawn procd_close_instance } @@ -44,7 +44,7 @@ start_service() { stop_service() { # clean up - . /usr/lib/unbound/unbound.sh + . /usr/lib/unbound/stopping.sh unbound_stop # Wait! on restart Unbound may take time writing closure stats to syslog |