We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e967037 commit 7742a9cCopy full SHA for 7742a9c
1 file changed
systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
@@ -23,7 +23,6 @@
23
import fcntl
24
import shutil
25
import tempfile
26
-import signal
27
from .CsGuestNetwork import CsGuestNetwork
28
from cs.CsDatabag import CsDataBag
29
from cs.CsFile import CsFile
@@ -225,12 +224,9 @@ def remove_lease(self, ip):
225
224
226
# reload dnsmasq
227
try:
228
- with open("/var/run/dnsmasq.pid") as pidf:
229
- os.kill(int(pidf.read().strip()), signal.SIGHUP)
+ CsHelper.service("dnsmasq", "reload")
230
except Exception:
231
pass
232
-
233
- os.system("ip neigh flush all")
234
else:
235
os.remove(tmp_path)
236
finally:
0 commit comments