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:
Hans Dedecker 2016-11-14 12:19:39 +01:00 committed by Felix Fietkau
parent 728ab77d3d
commit e58f3f515f
2 changed files with 5 additions and 1 deletions

View file

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=odhcpd PKG_NAME:=odhcpd
PKG_VERSION:=2016-09-22 PKG_VERSION:=2016-11-14
PKG_RELEASE=$(PKG_SOURCE_VERSION) PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz

View file

@ -11,6 +11,10 @@ start_service() {
procd_close_instance procd_close_instance
} }
reload_service() {
killall -HUP odhcpd
}
service_triggers() service_triggers()
{ {
procd_add_reload_trigger "dhcp" procd_add_reload_trigger "dhcp"