diff --git a/scripts/install/openim-tools.sh b/scripts/install/openim-tools.sh index 04cd70adf..6f25a0bd8 100755 --- a/scripts/install/openim-tools.sh +++ b/scripts/install/openim-tools.sh @@ -101,7 +101,13 @@ function openim::tools::start_service() { cmd="${cmd} --prometheus_port ${prometheus_port}" fi openim::log::status "Starting binary ${binary_name}..." + + + ${cmd} + + + local status=$? if [ $status -eq 0 ]; then diff --git a/tools/component/component.go b/tools/component/component.go index 6893ebf2c..6c34f7c9d 100644 --- a/tools/component/component.go +++ b/tools/component/component.go @@ -112,7 +112,6 @@ func main() { checks[index].flag = true } } - component.ErrorPrint(fmt.Sprintf("Starting %s failed:%v.", check.name, errs.Unwrap(err).Error())) if strings.Contains(errs.Unwrap(err).Error(), "connection refused") || strings.Contains(errs.Unwrap(err).Error(), "timeout") ||