From 13e780cda527636331a4bb2cb4e175ef34459280 Mon Sep 17 00:00:00 2001 From: putty182 Date: Tue, 16 Feb 2021 00:30:15 +1000 Subject: [PATCH] Add --max-time 100 to healthcheck (#66) If Plex is running but is unable to send a response, curl will wait indefinitley until it does. Adding `--max-time 100` sets an upper limit for how long curl will wait for a response. This matches Dockerfile's HEALTHCHECK time to mark a container as unhealthy (--interval=5s --timeout=2s --retries=20) --- root/healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/healthcheck.sh b/root/healthcheck.sh index fea1e1c..038e8c7 100755 --- a/root/healthcheck.sh +++ b/root/healthcheck.sh @@ -1,7 +1,7 @@ #!/bin/sh -e TARGET=localhost -CURL_OPTS="--connect-timeout 15 --silent --show-error --fail" +CURL_OPTS="--connect-timeout 15 --max-time 100 --silent --show-error --fail" curl ${CURL_OPTS} "http://${TARGET}:32400/identity" >/dev/null