private boolean isProcessAllStarted(ModuleConfig module, int times) {
        for (int check = 0; check < times; check++) {
            AgentUtils.silenceSleepInSeconds(1);
            String ret = ExcuteLinux.exeCmd(module.getCheckCommand());
            if (ret == null) {
                LOGGER.error("[{}] get module {}({}) process num failed", check, module.getId(), module.getName());
                continue;
            }
            String[] processArray = ret.split("\n");
            int cnt = 0;
            for (int i = 0; i < processArray.length; i++) {
                if (processArray[i].length() > 0) {
                    cnt++;
                }
            }
            LOGGER.info("[{}] get module {}({}) process num {}", check, module.getId(), module.getName(), cnt);
            if (cnt >= module.getProcessesNum()) {
                return true;
            }
        }
        return false;
    }
Thread for core thread.

@return runnable profile.
inlong-agent/agent-installer/src/main/java/org/apache/inlong/agent/installer/ModuleManager.java