mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5986: Fix dnsmasq lease judgement
This commit is contained in:
parent
122761db34
commit
6baa0538a8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue