[Pkg-debile-commits] [debile-slave] 01/01: Restart on fatal error.

Paul Richards Tagliamonte paultag at alioth.debian.org
Sun Sep 8 19:38:09 UTC 2013


This is an automated email from the git hooks/post-receive script.

paultag pushed a commit to branch master
in repository debile-slave.

commit 020e431b8cc2453afb0a75eb3048356ae6745737
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Sun Sep 8 15:49:50 2013 -0400

    Restart on fatal error.
---
 debileslave/daemon.py |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debileslave/daemon.py b/debileslave/daemon.py
index fb54900..a9dab39 100644
--- a/debileslave/daemon.py
+++ b/debileslave/daemon.py
@@ -168,3 +168,8 @@ def main():
         except IDidNothingError:
             logging.debug("Nothing to do for now, sleeping 30s")
             time.sleep(30)
+        except Exception as e:
+            logging.warning("Er, we got a fatal error: %s. Restarting" % (
+                str(e)
+            ))
+            time.sleep(60)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-slave.git



More information about the Pkg-debile-commits mailing list