CLOUDSTACK-5986: Fix dnsmasq lease judgement

This commit is contained in:
Sheng Yang 2014-03-12 18:14:05 -07:00
parent 122761db34
commit 6baa0538a8
1 changed files with 2 additions and 2 deletions

View File

@ -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