Skip to content

Commit

Permalink
Merge pull request #39 from linuxserver/main-ping
Browse files Browse the repository at this point in the history
Use /ping endpoint for readiness checks
  • Loading branch information
thespad authored Apr 9, 2023
2 parents acc6d8c + caa0428 commit 904ee46
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-prowlarr/data/check
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/svc-prowlarr/run
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# shellcheck shell=bash

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 \
-nobrowser -data=/config

0 comments on commit 904ee46

Please sign in to comment.