You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2013/04/09 00:24:10 UTC

[03/12] git commit: updated refs/heads/internallb to e665f2a

Replace restart with SIGHUP

This signal will force the dnsmasq daemon to reload the configuration directly. This is much faster than restarting the daemon, which result in a much smaller window during which no dns server is available.

Tested by using the replaced version of edithosts.sh on a running vrouter causing dns problems.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/79488f1e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/79488f1e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/79488f1e

Branch: refs/heads/internallb
Commit: 79488f1efd2e0f21515d888ccb78978ee7b7a9ba
Parents: 23a2500
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Sun Apr 7 21:46:38 2013 +0200
Committer: Alena Prokharchyk <al...@citrix.com>
Committed: Mon Apr 8 15:23:55 2013 -0700

----------------------------------------------------------------------
 patches/systemvm/debian/config/root/edithosts.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/79488f1e/patches/systemvm/debian/config/root/edithosts.sh
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/root/edithosts.sh b/patches/systemvm/debian/config/root/edithosts.sh
index 9f21f20..1f98fbf 100755
--- a/patches/systemvm/debian/config/root/edithosts.sh
+++ b/patches/systemvm/debian/config/root/edithosts.sh
@@ -200,7 +200,8 @@ fi
 pid=$(pidof dnsmasq)
 if [ "$pid" != "" ]
 then
-  service dnsmasq restart
+  #service dnsmasq restart
+  kill -HUP $pid
 else
   if [ $no_redundant -eq 1 ]
   then