@inlineCallbacks<EOL><INDENT>def run_services(self, time):<DEDENT>
from pop.exceptions import ServiceException<EOL>try:<EOL><INDENT>pids = yield self.start_services()<EOL>self.pids.extend(pids)<EOL><DEDENT>except ServiceException as exc:<EOL><INDENT>client = yield self.cmd("<STR_LIT:start>", str(exc))<EOL>@inlineCallbacks<EOL>def stop():<EOL><INDENT>yield client.close()<EOL>self.reactor.stop()<EOL>os._exit(<NUM_LIT:0>)<EOL><DEDENT>yield deferLater(self.reactor, time, stop)<EOL><DEDENT>
Run configured services on local machine agent.

        Services are stopped after the provided time has elapsed.