You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by an...@apache.org on 2014/03/18 00:42:36 UTC
[2/6] git commit: updated refs/heads/4.3 to 0810029
CLOUDSTACK-5986: Fix dnsmasq lease for VPC
(cherry picked from commit 657d042953e40e3220c5b0b86511f3bf6a1e186f)
Signed-off-by: Animesh Chaturvedi <an...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/5973a426
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5973a426
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5973a426
Branch: refs/heads/4.3
Commit: 5973a4269143679693fc5f1fe89c7b3d70c26b6f
Parents: e11bbe7
Author: Sheng Yang <sh...@citrix.com>
Authored: Wed Mar 12 18:02:31 2014 -0700
Committer: Animesh Chaturvedi <an...@apache.org>
Committed: Mon Mar 17 16:19:34 2014 -0700
----------------------------------------------------------------------
systemvm/patches/debian/config/root/edithosts.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5973a426/systemvm/patches/debian/config/root/edithosts.sh
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/root/edithosts.sh b/systemvm/patches/debian/config/root/edithosts.sh
index 8e7ddac..d6ff983 100755
--- a/systemvm/patches/debian/config/root/edithosts.sh
+++ b/systemvm/patches/debian/config/root/edithosts.sh
@@ -95,7 +95,7 @@ wait_for_dnsmasq () {
return 1
}
-if [ $dnsmasq_managed_lease ]
+if [ $dnsmasq_managed_lease -eq 1 ]
then
#release previous dhcp lease if present
logger -t cloud "edithosts: releasing $ipv4"
@@ -212,7 +212,7 @@ pid=$(pidof dnsmasq)
if [ "$pid" != "" ]
then
# use SIGHUP to avoid service outage if dhcp_release is available.
- if [ $dnsmasq_managed_lease ]
+ if [ $dnsmasq_managed_lease -eq 1 ]
then
kill -HUP $pid
else