Initial commit
This commit is contained in:
7
backend/sortarr/healthcheck.py
Normal file
7
backend/sortarr/healthcheck.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from urllib.request import urlopen
|
||||
|
||||
|
||||
with urlopen("http://127.0.0.1:8099/api/health", timeout=3) as response:
|
||||
if response.status != 200:
|
||||
raise SystemExit(1)
|
||||
|
||||
Reference in New Issue
Block a user