From 9cba19d4dbb00a3326f7158b0f378ad30d29a798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=98=AD?= <81747598+lan-yonghui@users.noreply.github.com> Date: Wed, 25 Jun 2025 22:05:29 +0800 Subject: [PATCH] fix: Fix the process status error issue (#9285) --- agent/app/service/host_tool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/app/service/host_tool.go b/agent/app/service/host_tool.go index eb8ed22f7..73be249d2 100644 --- a/agent/app/service/host_tool.go +++ b/agent/app/service/host_tool.go @@ -602,7 +602,7 @@ func getProcessStatus(config *response.SupervisorProcessConfig, containerName st out, err = exec.Command("supervisorctl", processNames...).Output() output = string(out) } - if containerName == "" && err != nil { + if output == "" && err != nil { return err } lines := strings.Split(output, "\n")