From fe713f1524550604eccec14b49056242ed216fd8 Mon Sep 17 00:00:00 2001 From: Zzm0809 <934230207@qq.com> Date: Mon, 9 Dec 2024 15:37:43 +0800 Subject: [PATCH] Fix automation script path issue --- script/bin/auto.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/script/bin/auto.sh b/script/bin/auto.sh index 67055c71cf..ac439e67a7 100644 --- a/script/bin/auto.sh +++ b/script/bin/auto.sh @@ -204,10 +204,8 @@ start() { nohup java ${PARAMS_OPT} ${JVM_OPTS} ${OOM_OPT} ${GC_OPT} -Xverify:none -cp "${CLASS_PATH}" org.dinky.Dinky ${JAR_PARAMS_OPT} > ${DINKY_LOG_PATH}/dinky-start.log 2>&1 & PID=$! echo "${PID}" >"${PID_PATH}"/${PID_FILE} - run_result=$(wait_start_process) - if [ "$run_result" -eq 0 ]; then - echo -e "${GREEN}........................................Start Dinky Successfully........................................${RESET}" - fi + wait_start_process + echo -e "${GREEN}........................................Start Dinky Successfully........................................${RESET}" echo -e "${GREEN}current log path : ${DINKY_LOG_PATH}/dinky-start.log , you can execute tail -fn1000 ${DINKY_LOG_PATH}/dinky-start.log to watch the log${RESET}" else echo -e "$YELLOW Dinky pid $pid is in ${PID_PATH}/${PID_FILE}, Please stop first !!!$RESET" @@ -231,11 +229,9 @@ startWithJmx() { if [ -z "$pid" ]; then nohup java ${PARAMS_OPT} ${JVM_OPTS} ${OOM_OPT} ${GC_OPT} -Xverify:none "${JMX}" -cp "${CLASS_PATH}" org.dinky.Dinky ${JAR_PARAMS_OPT} > ${DINKY_LOG_PATH}/dinky-start.log 2>&1 & PID=$! - run_result=$(wait_start_process) - if [ "$run_result" -eq 0 ]; then - echo -e "$GREEN........................................Start Dinky with Jmx Successfully........................................$RESET" - updatePid - fi + wait_start_process + echo -e "$GREEN........................................Start Dinky with Jmx Successfully........................................$RESET" + updatePid else echo -e "$YELLOW Dinky pid $pid is in ${PID_PATH}/${PID_FILE}, Please stop first !!!$RESET"