MCPcopy Create free account
hub / github.com/apache/cloudstack / hup_dnsmasq

Function hup_dnsmasq

systemvm/debian/opt/cloud/bin/cs/CsHelper.py:246–256  ·  view source on GitHub ↗
(name, user)

Source from the content-addressed store, hash-verified

244
245
246def hup_dnsmasq(name, user):
247 pid = ""
248 for i in execute("ps -ef | grep %s" % name):
249 vals = i.lstrip().split()
250 if (vals[0] == user):
251 pid = vals[1]
252 if pid:
253 logging.info("Sent hup to %s", name)
254 execute("kill -HUP %s" % pid)
255 else:
256 service("dnsmasq", "start")
257
258
259def copy_if_needed(src, dest):

Callers

nothing calls this directly

Calls 3

executeFunction · 0.70
serviceFunction · 0.70
infoMethod · 0.45

Tested by

no test coverage detected