mirror of
https://github.com/linuxserver/docker-readarr.git
synced 2026-03-09 00:10:00 +08:00
Merge pull request #26 from linuxserver/develop-ping
This commit is contained in:
commit
eab15431bd
7
root/etc/s6-overlay/s6-rc.d/svc-readarr/data/check
Executable file
7
root/etc/s6-overlay/s6-rc.d/svc-readarr/data/check
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $(curl -sL "http://localhost:8787/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 8787" \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 \
|
||||
cd /app/readarr/bin s6-setuidgid abc /app/readarr/bin/Readarr \
|
||||
-nobrowser -data=/config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user