コード例 #1
0
ファイル: run.py プロジェクト: sam1016yu/janus
 def server_kill(self):
     hosts = {pi.host_address for pi in self.process_infos.itervalues()}
     ps_output = ps.ps(hosts, "deptran_server")
     logger.debug(
         "Existing Server or Client Processes:\n{}".format(ps_output))
     ps.killall(hosts, "deptran_server", "-9")
     ps_output = ps.ps(hosts, "deptran_server")
     logger.debug(
         "Existing Server or Client After Kill:\n{}".format(ps_output))
コード例 #2
0
ファイル: run.py プロジェクト: sam1016yu/janus
 def client_kill(self):
     logger.info("killing clients ...")
     sites = ProcessInfo.get_sites(self.process_infos,
                                   SiteInfo.SiteType.Client)
     hosts = {s.process.host_address for s in sites}
     ps.killall(hosts, "deptran_server", "-9")