summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-11-14 12:19:39 +0100
committerFelix Fietkau <nbd@nbd.name>2016-11-14 20:35:13 +0100
commite58f3f515fe3555d2f82569e37454c7ba067001c (patch)
treedcb6addca88e8afbfa3af569938edc03174acca5 /package
parent728ab77d3d954951a180d730a2e2eccf635abbaf (diff)
downloadmtk-20170518-e58f3f515fe3555d2f82569e37454c7ba067001c.zip
mtk-20170518-e58f3f515fe3555d2f82569e37454c7ba067001c.tar.gz
mtk-20170518-e58f3f515fe3555d2f82569e37454c7ba067001c.tar.bz2
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>
Diffstat (limited to 'package')
-rw-r--r--package/network/services/odhcpd/Makefile2
-rw-r--r--package/network/services/odhcpd/files/odhcpd.init4
2 files changed, 5 insertions, 1 deletions
diff --git a/package/network/services/odhcpd/Makefile b/package/network/services/odhcpd/Makefile
index e049e92..0647ec9 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 c8a3114..bbbec9c 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"