From 975a7c162e4a27447f00c95fa984b85bea92fdb5 Mon Sep 17 00:00:00 2001 From: EarthlingDavey <15802017+EarthlingDavey@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:55:19 +0000 Subject: [PATCH] Update fpm-readiness.sh --- bin/fpm-readiness.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/fpm-readiness.sh b/bin/fpm-readiness.sh index 4d260d2b5..53a5bde57 100755 --- a/bin/fpm-readiness.sh +++ b/bin/fpm-readiness.sh @@ -6,8 +6,8 @@ PING_RESPONSE=$(env -i SCRIPT_NAME=/ping SCRIPT_FILENAME=/ping REQUEST_METHOD=GE # Store the process ID of the ping request. PING_PID=$!; -# Wait for 1 second to give the ping request time to complete. -sleep 1; +# Wait for 0.25 seconds to give the ping request time to complete. +sleep 0.25; # Check if the ping request is still running. if kill -0 $PING_PID 2>/dev/null; then @@ -33,8 +33,8 @@ FPM_STATUS=$(env -i SCRIPT_NAME=/status SCRIPT_FILENAME=/status REQUEST_METHOD=G # Store the process ID of the status request. STATUS_PID=$!; -# Wait for 1 second to give the status request time to complete. -sleep 1; +# Wait for 0.5 seconds to give the status request time to complete. +sleep 0.5; # Check if the status request is still running. if kill -0 $STATUS_PID 2>/dev/null; then