|
|
@ -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 |
|
|
|