Use /ping endpoint for readiness checks
This commit is contained in:
7
root/etc/s6-overlay/s6-rc.d/svc-prowlarr/data/check
Executable file
7
root/etc/s6-overlay/s6-rc.d/svc-prowlarr/data/check
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $(curl -sL "http://localhost:9696/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user