also log elapsed time

This commit is contained in:
Cian Johnston 2026-01-07 16:31:02 +00:00
parent fa8147e1bb
commit 2ecdbddf8f
No known key found for this signature in database
GPG Key ID: F57401F0A40CBB29

View File

@ -11,10 +11,12 @@ port=${1:-3284}
agentapi_started=false
echo "Waiting for agentapi server to start on port $port..."
start=$(date +%s)
while true; do
if curl -f "http://localhost:$port/status"; then
echo "$(date): agentapi response received"
agentapi_started=true
elapsed=$(($(date +%s) - start))
echo "$(date): agentapi server started after $elapsed seconds"
break
else
echo "$(date): agentapi server not responding"