mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-22 04:56:35 +00:00
Merge pull request #784 from tcely/patch-5
Prevent unintended unhealthy restarts
This commit is contained in:
commit
e33d30a3d7
@ -30,6 +30,9 @@ def do_heatlhcheck(url):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# if it is marked as intentionally down, nothing else matters
|
||||
if os.path.exists('/run/service/gunicorn/down'):
|
||||
sys.exit(0)
|
||||
try:
|
||||
url = sys.argv[1]
|
||||
except IndexError:
|
||||
|
Loading…
Reference in New Issue
Block a user