unbound: limit outside script source to init funciton scope
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
This commit is contained in:
parent
338690b2f7
commit
43f14b8112
|
@ -9,11 +9,11 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=unbound
|
PKG_NAME:=unbound
|
||||||
PKG_VERSION:=1.6.8
|
PKG_VERSION:=1.6.8
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
PKG_MAINTAINER:=Eric Luehrsen <ericluehrsen@hotmail.com>
|
PKG_MAINTAINER:=Eric Luehrsen <ericluehrsen@gmail.com>
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://www.unbound.net/downloads
|
PKG_SOURCE_URL:=http://www.unbound.net/downloads
|
||||||
|
|
|
@ -16,10 +16,6 @@ PROG=/usr/sbin/unbound
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
. /usr/lib/unbound/unbound.sh
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
boot() {
|
boot() {
|
||||||
UNBOUND_BOOT=1
|
UNBOUND_BOOT=1
|
||||||
start "$@"
|
start "$@"
|
||||||
|
@ -34,10 +30,11 @@ start_service() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# complex UCI work
|
# complex UCI work
|
||||||
|
. /usr/lib/unbound/unbound.sh
|
||||||
unbound_start
|
unbound_start
|
||||||
|
|
||||||
# standard procd clause
|
# standard procd clause
|
||||||
procd_open_instance
|
procd_open_instance "unbound"
|
||||||
procd_set_param command $PROG -d -c $UNBOUND_CONFFILE
|
procd_set_param command $PROG -d -c $UNBOUND_CONFFILE
|
||||||
procd_set_param respawn
|
procd_set_param respawn
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
|
@ -46,6 +43,8 @@ start_service() {
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
stop_service() {
|
stop_service() {
|
||||||
|
# clean up
|
||||||
|
. /usr/lib/unbound/unbound.sh
|
||||||
unbound_stop
|
unbound_stop
|
||||||
|
|
||||||
# Wait! on restart Unbound may take time writing closure stats to syslog
|
# Wait! on restart Unbound may take time writing closure stats to syslog
|
||||||
|
|
Loading…
Reference in New Issue