Merge pull request #1758 from openimsdk/cubxxw-patch-1

Update openim-tools.sh  tools scripts images
pull/1760/head
OpenIM Robot 10 months ago committed by GitHub
commit e5083d5809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -103,8 +103,13 @@ function openim::tools::start_service() {
printf "Specifying prometheus port: %s\n" "${prometheus_port}" printf "Specifying prometheus port: %s\n" "${prometheus_port}"
cmd="${cmd} --prometheus_port ${prometheus_port}" cmd="${cmd} --prometheus_port ${prometheus_port}"
fi fi
openim::log::info "Starting ${binary_name}..." openim::log::status "Starting ${binary_name}..."
${cmd} >> "${LOG_FILE}" 2>&1 & # Later, after discarding Docker, the Docker keyword is unreliable, and Kubepods is used
if grep -qE 'docker|kubepods' /proc/1/cgroup || [ -f /.dockerenv ]; then
${cmd} >> "${LOG_FILE}" 2>&1
else
${cmd} | tee -a "${LOG_FILE}"
fi
} }
function openim::tools::start() { function openim::tools::start() {

Loading…
Cancel
Save