MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / stop

Method stop

mod/project/python/serviceMod.py:264–272  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

262 return res
263
264 def stop(self) -> None:
265 pid = self.get_service_pid()
266 if not pid:
267 return
268 try:
269 p = psutil.Process(pid)
270 p.kill()
271 except:
272 pass
273
274 def get_log(self) -> str:
275 if not self.env:

Callers 2

handle_serviceMethod · 0.45
stop_projectMethod · 0.45

Calls 2

get_service_pidMethod · 0.95
killMethod · 0.80

Tested by

no test coverage detected