diff --git a/bin/start_be.sh b/bin/start_be.sh index 9841e57cdae798b..29bc2eb432d03de 100755 --- a/bin/start_be.sh +++ b/bin/start_be.sh @@ -30,12 +30,14 @@ OPTS="$(getopt \ -n "$0" \ -o '' \ -l 'daemon' \ + -l 'console' \ -- "$@")" eval set -- "${OPTS}" RUN_DAEMON=0 RUN_IN_AWS=0 +RUN_CONSOLE=0 while true; do case "$1" in --daemon) @@ -46,6 +48,10 @@ while true; do RUN_IN_AWS=1 shift ;; + --console) + RUN_CONSOLE=1 + shift + ;; --) shift break @@ -336,7 +342,9 @@ export AWS_MAX_ATTEMPTS=2 if [[ "${RUN_DAEMON}" -eq 1 ]]; then nohup ${LIMIT:+${LIMIT}} "${DORIS_HOME}/lib/doris_be" "$@" >>"${LOG_DIR}/be.out" 2>&1 &1 >"${LOG_DIR}/be.out" 2>&1 >"${LOG_DIR}/fe.out" 2>&1 >"${LOG_DIR}/fe.out" 2>&1 "${pidfile}"