From ad635f85fb4889db36757045318fc5012c1e23d5 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Thu, 21 Mar 2024 16:55:53 +0800 Subject: [PATCH] Optimizing scripts --- scripts/check-all.sh | 3 ++- scripts/install/openim-api.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/check-all.sh b/scripts/check-all.sh index 63b61ce1d..02ca4a6f6 100755 --- a/scripts/check-all.sh +++ b/scripts/check-all.sh @@ -111,4 +111,5 @@ else fi -openim::util::find_process_ports ${OPENIM_ALL_SERVICE_LIBRARIES_NO_TRANSFER[@]} \ No newline at end of file +openim::util::find_process_ports ${OPENIM_ALL_SERVICE_LIBRARIES_NO_TRANSFER[@]} + diff --git a/scripts/install/openim-api.sh b/scripts/install/openim-api.sh index cd3d5eb08..0df844b12 100755 --- a/scripts/install/openim-api.sh +++ b/scripts/install/openim-api.sh @@ -89,7 +89,7 @@ function openim::api::start_service() { echo "Starting service with command: $cmd" #nohup $cmd >> "${LOG_FILE}" 2> >(tee -a "${STDERR_LOG_FILE}" "$TMP_LOG_FILE" >&2) & - nohup ${cmd} >> "${LOG_FILE}" 2> >(tee -a "$TMP_LOG_FILE" | while read line; do echo -e "\e[31m${line}\e[0m"; done >&2) >/dev/null & + nohup ${cmd} >> "${LOG_FILE}" 2> >(tee -a "$TMP_LOG_FILE" | while read line; do echo -e "\e[31m${line}\e[0m"; done >&2) >./tmp.log & if [ $? -ne 0 ]; then openim::log::error_exit "Failed to start ${binary_name} on port ${service_port}." return 1