From 4aa4448d819b39b0d42b36324d84880d987f6b80 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 7 Jan 2026 16:29:23 +0000 Subject: [PATCH] check for agentapi pid --- .../modules/agentapi/scripts/agentapi-wait-for-start.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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