X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=modules%2Fmirror_health%2Ffiles%2Fmirror-health;h=64845953eb3af16e4452d2fa047d963fb1ce3dbb;hp=025382e78c78545dd33b6f877755b38ceb9f94d5;hb=9728596ba8cf819fe5255eb2aee9b2c469b8359c;hpb=2d1ec427e3c71ed97101e3dc53b8ece95624d67f diff --git a/modules/mirror_health/files/mirror-health b/modules/mirror_health/files/mirror-health index 025382e78..64845953e 100755 --- a/modules/mirror_health/files/mirror-health +++ b/modules/mirror_health/files/mirror-health @@ -40,7 +40,7 @@ def healthy(response): return False def check_shutdown(): - if subprocess.call(['dsa-is-shutdown-scheduled']) == 0: + if os.path.exists('/run/systemd/shutdown/scheduled'): logging.info("considering myself unhealthy, shutdown scheduled") return False return True