From 1b755305cb7bbeeff0b8008c364d0c357a803483 Mon Sep 17 00:00:00 2001 From: hanzhixiao <709674996@qq.com> Date: Wed, 9 Aug 2023 14:31:01 +0800 Subject: [PATCH] 815 Signed-off-by: hanzhixiao <709674996@qq.com> --- scripts/start_component_check.sh | 2 +- tools/component/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/start_component_check.sh b/scripts/start_component_check.sh index 98ec48dec..6d9fa227b 100644 --- a/scripts/start_component_check.sh +++ b/scripts/start_component_check.sh @@ -35,7 +35,7 @@ cmd="./${component_check}" echo "==========================start components checking===========================">>$OPENIM_ROOT/logs/openIM.log $cmd -if [ $? -nq 0 ]; then +if [ $? -ne 0 ]; then exit 1 fi diff --git a/tools/component/main.go b/tools/component/main.go index a1a83b8d2..f9b4c4c79 100644 --- a/tools/component/main.go +++ b/tools/component/main.go @@ -28,7 +28,7 @@ import ( const ( cfgPath = "../../../../../config/config.yaml" minioHealthCheckDuration = 1 - maxRetry = 10 + maxRetry = 100 componentStartErrCode = 6000 configErrCode = 6001 )