Handle the return value of pre-start

This commit is contained in:
skiffer-git 2024-03-08 10:43:03 +08:00
parent 93f4ea022b
commit 4f820df00d

View File

@ -101,7 +101,6 @@ function openim::tools::start_service() {
cmd="${cmd} --prometheus_port ${prometheus_port}" cmd="${cmd} --prometheus_port ${prometheus_port}"
fi fi
openim::log::status "Starting binary ${binary_name}..." openim::log::status "Starting binary ${binary_name}..."
${cmd} | tee -a "${LOG_FILE}"
${cmd} >> "${LOG_FILE}" 2>&1 ${cmd} >> "${LOG_FILE}" 2>&1
local status=$? local status=$?