mirror of
https://github.com/linuxserver/docker-sonarr.git
synced 2026-02-19 22:09:04 +08:00
Use /ping endpoint for readiness check
This commit is contained in:
parent
9d16e158ae
commit
ec057dda95
7
root/etc/s6-overlay/s6-rc.d/svc-sonarr/data/check
Executable file
7
root/etc/s6-overlay/s6-rc.d/svc-sonarr/data/check
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $(curl -sL "http://localhost:8989/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
@ -2,6 +2,6 @@
|
||||
# shellcheck shell=bash
|
||||
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8989" \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 \
|
||||
cd /app/sonarr/bin s6-setuidgid abc /app/sonarr/bin/Sonarr \
|
||||
-nobrowser -data=/config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user