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")