utils/bvtest/scripts/DaosServer.py
def stop_process(self):
        """ Wait for processes to terminate and terminate them after
        the wait period. """

        self.logger.info("<DAOS Server> stopping processes :%s", self.proc.pid)

        self.proc.poll()
        rc = self.proc.returncode
        if rc is None:
            self.logger.info("Server is still running")
            try:
                self.proc.terminate()
                self.proc.wait(2)
                rc = self.proc.returncode
            except ProcessLookupError:
                pass
            except Exception:
                self.logger.error("Killing processes: %s", self.proc.pid)
                self.proc.kill()

        # now just double check and blow away anything that is left
        self.kill_server(self.hostlist)

        self.dump_leftovers(self.hostlist)

        # Always return success for now
        return 0
 Wait for processes to terminate and terminate them after
        the wait period. 
Wait for processes to terminate and terminate them after
the wait period.
Wait for processes to terminate and terminate them after the wait period .
def stop_process(self):
        self.logger.info("<DAOS Server> stopping processes :%s", self.proc.pid)
        self.proc.poll()
        rc = self.proc.returncode
        if rc is None:
            self.logger.info("Server is still running")
            try:
                self.proc.terminate()
                self.proc.wait(2)
                rc = self.proc.returncode
            except ProcessLookupError:
                pass
            except Exception:
                self.logger.error("Killing processes: %s", self.proc.pid)
                self.proc.kill()
        self.kill_server(self.hostlist)
        self.dump_leftovers(self.hostlist)
        return 0
def stop_process ( self ) : self . logger . info ( "<DAOS Server> stopping processes :%s" , self . proc . pid ) self . proc . poll ( ) rc = self . proc . returncode if rc is None : self . logger . info ( "Server is still running" ) try : self . proc . terminate ( ) self . proc . wait ( 2 ) rc = self . proc . returncode except ProcessLookupError : pass except Exception : self . logger . error ( "Killing processes: %s" , self . proc . pid ) self . proc . kill ( ) self . kill_server ( self . hostlist ) self . dump_leftovers ( self . hostlist ) return 0
Wait for processes to terminate and terminate them after
the wait period.
Wait for processes to terminate and terminate them after the wait period .
""" Wait for processes to terminate and terminate them after
        the wait period. """ # now just double check and blow away anything that is left # Always return success for now
self