diff --git a/scripts-new/check.sh b/scripts-new/check.sh index 8e6d06130..3b82cd154 100644 --- a/scripts-new/check.sh +++ b/scripts-new/check.sh @@ -24,20 +24,26 @@ -OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/ -source "${OPENIM_ROOT}/lib/util.sh" -source "${OPENIM_ROOT}/define/binaries.sh" -source "${OPENIM_ROOT}/lib/path.sh" +OPENIM_SCRIPTS=$(dirname "${BASH_SOURCE[0]}")/ +source "$OPENIM_SCRIPTS/bricks.sh" +# Call the main function +result=$(start_binaries) + result=$(check_binaries_running) ret_val=$? - if [ $ret_val -eq 0 ]; then echo "All binaries are running." else echo "$result" + echo "abort..." + exit 1 fi + +print_listened_ports_by_binaries + + diff --git a/scripts-new/start.sh b/scripts-new/start.sh index 562cbb2c9..7a2d27404 100644 --- a/scripts-new/start.sh +++ b/scripts-new/start.sh @@ -35,6 +35,8 @@ if [ $ret_val -eq 0 ]; then echo "All binaries are running." else echo "$result" + echo "abort..." + exit 1 fi