[source] odhcpd: Use procd_send_signal in reload_service

LEDE Commits lede-commits at lists.infradead.org
Mon Dec 26 13:32:51 PST 2016


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

commit bdd2b67414d11372d3f5a1185c73aa290c75c034
Author: Hans Dedecker <dedeckeh at gmail.com>
AuthorDate: Mon Dec 26 22:21:52 2016 +0100

    odhcpd: Use procd_send_signal in reload_service
    
    Replace killall HUP by procd_send_signal in reload_service to trigger
    an odhcpd config reload
    
    Signed-off-by: Hans Dedecker <dedeckeh at gmail.com>
---
 package/network/services/odhcpd/files/odhcpd.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/services/odhcpd/files/odhcpd.init b/package/network/services/odhcpd/files/odhcpd.init
index bbbec9c..e05c386 100644
--- a/package/network/services/odhcpd/files/odhcpd.init
+++ b/package/network/services/odhcpd/files/odhcpd.init
@@ -12,7 +12,7 @@ start_service() {
 }
 
 reload_service() {
-	killall -HUP odhcpd
+	procd_send_signal odhcpd
 }
 
 service_triggers()



More information about the lede-commits mailing list