Skip to content

Commit

Permalink
Fix automation script path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 committed Dec 9, 2024
1 parent a402692 commit fe713f1
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions script/bin/auto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit fe713f1

Please sign in to comment.