From c66b080fd114b6af13971b3c6c3ef2588b0961b4 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 12 Oct 2012 15:31:06 -0400 Subject: [PATCH] Add a different stamp for auto-restarting just tabbott. (imported from commit 8f0b1f0bf655d64329a42100eec3dbef1393ded0) --- zephyr_mirror.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zephyr_mirror.py b/zephyr_mirror.py index b0d28d6..7482c16 100755 --- a/zephyr_mirror.py +++ b/zephyr_mirror.py @@ -135,7 +135,9 @@ def update_subscriptions_from_humbug(): ensure_subscribed(stream) def maybe_restart_mirroring_script(): - if os.stat(root_path + "/restart_stamp").st_mtime > start_time: + if os.stat(root_path + "/restart_stamp").st_mtime > start_time or \ + (os.environ["USER"] == "tabbott" and + os.stat(root_path + "/tabbott_stamp").st_mtime > start_time): print "zephyr mirroring script has been updated; restarting..." while True: try: