From d72131799126652df3842b2911c01a8928b41d3f Mon Sep 17 00:00:00 2001 From: hanzhixiao <709674996@qq.com> Date: Wed, 9 Aug 2023 14:19:54 +0800 Subject: [PATCH] 815 Signed-off-by: hanzhixiao <709674996@qq.com> --- scripts/start_all.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/scripts/start_all.sh b/scripts/start_all.sh index fb59d6767..7e437e4b6 100755 --- a/scripts/start_all.sh +++ b/scripts/start_all.sh @@ -76,8 +76,19 @@ need_to_start_server_shell=( msg_gateway_start.sh start_cron.sh ) - chmod +x $i - start_component_check.sh + +component_check=start_component_check.sh +echo -e "" +chmod +x $component_check +echo -e "=========> ${BACKGROUND_GREEN}Executing ${component_check}...${COLOR_SUFFIX}" +echo -e "" +./start_component_check.sh +if [ $? -ne 0 ]; then + # Print error message and exit + echo "${BOLD_PREFIX}${RED_PREFIX}Error executing ${component_check}. Exiting...${COLOR_SUFFIX}" + exit -1 +fi + # Loop through the script names and execute them for i in ${need_to_start_server_shell[*]}; do