From 7c479ba8a7454e85c76543f3b7783e6f86f839ee Mon Sep 17 00:00:00 2001 From: robk-org Date: Mon, 4 Jun 2007 18:46:37 -0700 Subject: [PATCH] catch failures in startService() and abort process --- src/allmydata/node.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/allmydata/node.py b/src/allmydata/node.py index 365f9497..6fcc0f09 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -86,6 +86,13 @@ class Node(service.MultiService): self._tub_ready_observerlist.fire(self) return self d.addCallback(_ready) + def _die(failure): + self.log('_startService() failed') + log.err(failure) + #reactor.stop() # for unknown reasons, reactor.stop() isn't working. [ ] TODO + self.log('calling os.abort()') + os.abort() + d.addErrback(_die) def stopService(self): self.log("Node.stopService") -- 2.45.2