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 )