projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Retire dsa-is-shutdown-scheduled in favor of test -e /run/systemd/shutdown/scheduled
[mirror/dsa-puppet.git]
/
modules
/
mirror_health
/
files
/
mirror-health
diff --git
a/modules/mirror_health/files/mirror-health
b/modules/mirror_health/files/mirror-health
index
025382e
..
6484595
100755
(executable)
--- 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