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

Method start_project

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

Source from the content-addressed store, hash-verified

611 return res
612
613 def start_project(self):
614 services = [self._build_service_by_conf(i) for i in self.service_list]
615 for i in services:
616 if isinstance(i, str):
617 continue
618 pid = i.get_service_pid()
619 if isinstance(pid, int) and pid > 0 and psutil.pid_exists(pid):
620 continue
621 i.start()
622 time.sleep(0.5)
623 return "启动指令已执行"
624
625 def stop_project(self):
626 services = [self._build_service_by_conf(i) for i in self.service_list]

Callers

nothing calls this directly

Calls 4

get_service_pidMethod · 0.45
pid_existsMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected