[source] dnsmasq: fix service reload

LEDE Commits lede-commits at lists.infradead.org
Fri Dec 16 01:44:37 PST 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/93227e4d3fb81332f1dcb6eaa158ddf914ca67a6

commit 93227e4d3fb81332f1dcb6eaa158ddf914ca67a6
Author: John Crispin <john at phrozen.org>
AuthorDate: Fri Dec 16 10:34:52 2016 +0100

    dnsmasq: fix service reload
    
    The SIGHUP also got sent to the reload script making it bail out
    with an error
    
    Revert "dnsmasq: reload config if host name is modified"
    This reverts commit 854459a2f923376e0e509ebc0fb8ff90e9f13c02.
    
    Reported-by: Hans Dedecker <dedeckeh at gmail.com>
    Signed-off-by: John Crispin <john at phrozen.org>
---
 package/network/services/dnsmasq/files/dnsmasq.init | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index 67808d5..174fbd1 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -785,7 +785,7 @@ dnsmasq_stop()
 
 service_triggers()
 {
-	procd_add_reload_trigger "dhcp" "system"
+	procd_add_reload_trigger "dhcp"
 	procd_add_raw_trigger "interface.*" 2000 /etc/init.d/dnsmasq reload
 }
 
@@ -825,7 +825,6 @@ start_service() {
 
 reload_service() {
 	rc_procd start_service "$@"
-	killall -HUP dnsmasq
 	return 0
 }
 



More information about the lede-commits mailing list