def kill(self): status = self.status() if status == AS.STATUS_RUNNING: # kill by ppid+pid - SIGTERM first, then try SIGKILL rspawn.remote_kill(self._pid, self._ppid, host=self.node.hostname, port=None, user=self.node.slicename, agent=None, ident_key=self.node.ident_path, server_key=self.node.server_key, sudo=self.sudo) self._logger.info("Killed %s", self)
def _do_kill_build(self): pid = self._build_pid ppid = self._build_ppid if pid and ppid: self._logger.info("Killing build of %s", self) rspawn.remote_kill(pid, ppid, host=self.node.hostname, port=None, user=self.node.slicename, agent=None, ident_key=self.node.ident_path, hostip=self.node.hostip)
def kill(self): status = self.status() if status == AS.STATUS_RUNNING: # kill by ppid+pid - SIGTERM first, then try SIGKILL rspawn.remote_kill( self._pid, self._ppid, host = self.node.hostname, port = None, user = self.node.slicename, agent = None, ident_key = self.node.ident_path, server_key = self.node.server_key, sudo = self.sudo ) self._logger.info("Killed %s", self)
def _do_kill_build(self): pid = self._build_pid ppid = self._build_ppid if pid and ppid: self._logger.info("Killing build of %s", self) rspawn.remote_kill( pid, ppid, host = self.node.hostname, port = None, user = self.node.slicename, agent = None, ident_key = self.node.ident_path, hostip = self.node.hostip )
def kill(self, nowait=True): local = self.local() if not local: raise RuntimeError, "Lost reference to local interface" status = self.status() if status == rspawn.RUNNING: self._logger.info("Stopping %s", self) # kill by ppid+pid - SIGTERM first, then try SIGKILL rspawn.remote_kill(self._pid, self._ppid, host=local.node.hostname, port=None, user=local.node.slicename, agent=None, ident_key=local.node.ident_path, server_key=local.node.server_key, sudo=True, nowait=nowait)
def kill(self, nowait = True): local = self.local() if not local: raise RuntimeError, "Lost reference to local interface" status = self.status() if status == rspawn.RUNNING: self._logger.info("Stopping %s", self) # kill by ppid+pid - SIGTERM first, then try SIGKILL rspawn.remote_kill( self._pid, self._ppid, host = local.node.hostname, port = None, user = local.node.slicename, agent = None, ident_key = local.node.ident_path, server_key = local.node.server_key, sudo = True, nowait = nowait )