[source] dnsmasq: send procd signal on service reload

LEDE Commits lede-commits at lists.infradead.org
Tue Dec 26 14:35:59 PST 2017


dedeckeh pushed a commit to source.git, branch master:
https://git.lede-project.org/23bba9cb330cd298739a16e350b0029ed9429eef

commit 23bba9cb330cd298739a16e350b0029ed9429eef
Author: Florian Eckert <fe at dev.tdt.de>
AuthorDate: Tue Dec 19 16:11:58 2017 +0100

    dnsmasq: send procd signal on service reload
    
    Send a SIGHUP signal via procd to the dnsmasq service so the instance(s)
    re-read(s) the /tmp/hosts/dhcp config.
    
    Signed-off-by: Florian Eckert <fe at dev.tdt.de>
---
 package/network/services/dnsmasq/Makefile           | 2 +-
 package/network/services/dnsmasq/files/dnsmasq.init | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile
index 174d7e3..c6d2739 100644
--- a/package/network/services/dnsmasq/Makefile
+++ b/package/network/services/dnsmasq/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dnsmasq
 PKG_VERSION:=2.78
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq/
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index 204e27d..dcc18e3 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -1084,7 +1084,7 @@ start_service() {
 
 reload_service() {
 	rc_procd start_service "$@"
-	return 0
+	procd_send_signal dnsmasq "$@"
 }
 
 stop_service() {



More information about the lede-commits mailing list