CLOUDSTACK-8952 - Restart dnsmasq everytime the configure.py runs

This commit is contained in:
Wilder Rodrigues 2015-10-15 18:31:03 +02:00
parent 2b286ecd73
commit c7671f3cdd
1 changed files with 2 additions and 4 deletions

View File

@ -48,10 +48,8 @@ class CsDhcp(CsDataBag):
self.configure_server()
if self.conf.is_changed() or self.cloud.is_changed():
CsHelper.service("dnsmasq", "restart")
elif self.cloud.is_changed():
CsHelper.hup_dnsmasq("dnsmasq", "dnsmasq")
# We restart DNSMASQ every time the configure.py is called in order to avoid lease problems.
CsHelper.service("dnsmasq", "restart")
self.conf.commit()
self.cloud.commit()