mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
odhcpd: Add reload support
odhcpd daemon has hitless config reload support by means of the sighup signal; add reload_service function which uses sighup signal to reload the config Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
This commit is contained in:
parent
728ab77d3d
commit
e58f3f515f
@ -8,7 +8,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=odhcpd
|
||||
PKG_VERSION:=2016-09-22
|
||||
PKG_VERSION:=2016-11-14
|
||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
|
@ -11,6 +11,10 @@ start_service() {
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
killall -HUP odhcpd
|
||||
}
|
||||
|
||||
service_triggers()
|
||||
{
|
||||
procd_add_reload_trigger "dhcp"
|
||||
|
Loading…
Reference in New Issue
Block a user