- logging.debug("lm for localhost: %s", lm)
- if latest_tz <= local_lm:
+ logging.debug("lm for localhost: %s", local_lm)
+ if local_lm < latest_ts:
+ logging.info("considering myself unhealthy my ts=%s latest_ts=%s", local_lm, latest_ts)
+ return False
+ return True
+
+while True:
+ start = time.time()
+ if check_shutdown() and check_uptodate():
+ logging.info("considering myself healthy")
+ open(HEALTH_FILE, 'w').write("OK")
+ else: