@inlineCallbacks<EOL><INDENT>def start_services(self, attempts=<NUM_LIT:0>, maximum=<NUM_LIT:1>, delay=<NUM_LIT:0.1>):<DEDENT>
yield self.agent.scan()<EOL>pids = self.agent.start_services()<EOL>if not pids and attempts < maximum:<EOL><INDENT>pids = yield deferLater(<EOL>self.reactor, delay, self.start_services, attempts + <NUM_LIT:1><EOL>)<EOL><DEDENT>returnValue(pids)<EOL>
Scan and start the services not already running.