From e58f3f515fe3555d2f82569e37454c7ba067001c Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Mon, 14 Nov 2016 12:19:39 +0100 Subject: 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 --- package/network/services/odhcpd/Makefile | 2 +- package/network/services/odhcpd/files/odhcpd.init | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'package/network/services') diff --git a/package/network/services/odhcpd/Makefile b/package/network/services/odhcpd/Makefile index e049e924b5..0647ec9cfc 100644 --- a/package/network/services/odhcpd/Makefile +++ b/package/network/services/odhcpd/Makefile @@ -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 diff --git a/package/network/services/odhcpd/files/odhcpd.init b/package/network/services/odhcpd/files/odhcpd.init index c8a311484e..bbbec9c232 100644 --- a/package/network/services/odhcpd/files/odhcpd.init +++ b/package/network/services/odhcpd/files/odhcpd.init @@ -11,6 +11,10 @@ start_service() { procd_close_instance } +reload_service() { + killall -HUP odhcpd +} + service_triggers() { procd_add_reload_trigger "dhcp" -- cgit v1.2.3