Merge pull request #89 from linuxserver/develop-ping

This commit is contained in:
Adam 2023-02-24 12:09:19 +00:00 committed by GitHub
commit e226876288
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
#!/bin/bash
if [[ $(curl -sL "http://localhost:8686/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
exit 0
else
exit 1
fi

View File

@ -2,6 +2,6 @@
# shellcheck shell=bash
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8686" \
s6-notifyoncheck -d -n 300 -w 1000 \
cd /app/lidarr/bin s6-setuidgid abc /app/lidarr/bin/Lidarr \
-nobrowser -data=/config