'Start a service, schedule its stop.
:param FilePath path: Where to store data.
:param logger: Optional eliot ``Logger`` to set before startup.
:return: Started ``ConfigurationPersistenceService``.'

def service(self, path, logger=None):

    service = ConfigurationPersistenceService(reactor, path)
    if (logger is not None):
        self.patch(service, 'logger', logger)
    service.startService()
    self.addCleanup(service.stopService)
    return service
