diff --git a/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh b/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh index 47f1ab34..31a8a4c3 100644 --- a/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh +++ b/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh @@ -18,6 +18,12 @@ while true; do break else echo "$(date): agentapi server not responding" + agentapi_pid=$(pidof agentapi) + if [ -z "$agentapi_pid" ]; then + echo "$(date): agentapi process not found" + else + echo "$(date): agentapi pid: $agentapi_pid" + fi sleep 1 continue fi