Merge pull request #39 from linuxserver/main-ping

Use /ping endpoint for readiness checks
This commit is contained in:
Adam
2023-04-09 16:38:34 +01:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+7
View 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
+1 -1
View File
@@ -2,6 +2,6 @@
# shellcheck shell=bash # shellcheck shell=bash
exec \ exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 9696" \ s6-notifyoncheck -d -n 300 -w 1000 \
cd /app/prowlarr/bin s6-setuidgid abc /app/prowlarr/bin/Prowlarr \ cd /app/prowlarr/bin s6-setuidgid abc /app/prowlarr/bin/Prowlarr \
-nobrowser -data=/config -nobrowser -data=/config