also log elapsed time
This commit is contained in:
parent
fa8147e1bb
commit
2ecdbddf8f
@ -11,10 +11,12 @@ port=${1:-3284}
|
|||||||
agentapi_started=false
|
agentapi_started=false
|
||||||
|
|
||||||
echo "Waiting for agentapi server to start on port $port..."
|
echo "Waiting for agentapi server to start on port $port..."
|
||||||
|
start=$(date +%s)
|
||||||
while true; do
|
while true; do
|
||||||
if curl -f "http://localhost:$port/status"; then
|
if curl -f "http://localhost:$port/status"; then
|
||||||
echo "$(date): agentapi response received"
|
|
||||||
agentapi_started=true
|
agentapi_started=true
|
||||||
|
elapsed=$(($(date +%s) - start))
|
||||||
|
echo "$(date): agentapi server started after $elapsed seconds"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
echo "$(date): agentapi server not responding"
|
echo "$(date): agentapi server not responding"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user