Retire dsa-is-shutdown-scheduled in favor of test -e /run/systemd/shutdown/scheduled
[mirror/dsa-puppet.git] / modules / mirror_health / files / mirror-health
index 025382e..6484595 100755 (executable)
@@ -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