mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8952 - Restart dnsmasq everytime the configure.py runs
This commit is contained in:
parent
2b286ecd73
commit
c7671f3cdd
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue