Files
jellyfin/root/etc/s6-overlay/s6-rc.d/svc-jellyfin/data/check
2023-07-05 20:20:17 +01:00

10 lines
248 B
Bash
Executable File

#!/bin/bash
PORT=$(xmlstarlet sel -T -t -v /NetworkConfiguration/HttpServerPortNumber /config/network.xml)
if [[ $(curl -sL "http://localhost:${PORT:-8096}/health" | jq -r '.status' 2>/dev/null) = "Healthy" ]]; then
exit 0
else
exit 1
fi