diff options
author | Eric Luehrsen <ericluehrsen@gmail.com> | 2018-06-25 20:40:21 -0400 |
---|---|---|
committer | Eric Luehrsen <ericluehrsen@gmail.com> | 2018-06-26 22:41:00 -0400 |
commit | 21864670fa1f79b8a6274c6253a84516ceec8d0f (patch) | |
tree | e5262674d89464b6fec15907f5ae844b64ef265a /net/unbound/files | |
parent | 9493e27e697dc6084ebb3f9ddf5874ee44a408f1 (diff) |
unbound: limit outside script source to init funciton scope
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
Diffstat (limited to 'net/unbound/files')
-rwxr-xr-x | net/unbound/files/unbound.init | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/unbound/files/unbound.init b/net/unbound/files/unbound.init index ac0dd5806..2f93b4d65 100755 --- a/net/unbound/files/unbound.init +++ b/net/unbound/files/unbound.init @@ -16,10 +16,6 @@ PROG=/usr/sbin/unbound ############################################################################## -. /usr/lib/unbound/unbound.sh - -############################################################################## - boot() { UNBOUND_BOOT=1 start "$@" @@ -34,10 +30,11 @@ start_service() { fi # complex UCI work + . /usr/lib/unbound/unbound.sh unbound_start # standard procd clause - procd_open_instance + procd_open_instance "unbound" procd_set_param command $PROG -d -c $UNBOUND_CONFFILE procd_set_param respawn procd_close_instance @@ -46,6 +43,8 @@ start_service() { ############################################################################## stop_service() { + # clean up + . /usr/lib/unbound/unbound.sh unbound_stop # Wait! on restart Unbound may take time writing closure stats to syslog |