def serve_forever(self):
        try:
            self.start()
        except RuntimeWarning, e:
            # If it can't start because it's
            # already started, just move on
            pass

        self.state.wait("stopped")
Start the service if it hasn't been already started and wait until it's stopped.
dataset/ETHPy150Open progrium/ginkgo/ginkgo/core.py/BasicService.serve_forever