This is an automated email from the ASF dual-hosted git repository.

andrijapanic pushed a commit to branch dnsmasq-reload-instead-of-restart
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit f08e3e966f29250e55742ba823f0ba3641a1e705
Author: Andrija Panic <45762285+andrijapani...@users.noreply.github.com>
AuthorDate: Mon Jan 13 21:26:54 2020 +0100

    reload dnsmasq instead of restart when adding new rules
    
    
    Optimistic fix, to be tested.
---
 systemvm/debian/opt/cloud/bin/cs/CsDhcp.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py 
b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
index 72c5dae..671bd51 100755
--- a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
+++ b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
@@ -69,7 +69,7 @@ class CsDhcp(CsDataBag):
 
         if not self.cl.is_redundant() or self.cl.is_master():
             if restart_dnsmasq:
-                CsHelper.service("dnsmasq", "restart")
+                CsHelper.service("dnsmasq", "reload")
             else:
                 CsHelper.start_if_stopped("dnsmasq")
                 CsHelper.service("dnsmasq", "reload")

Reply via email to