From c21eb94c6f8374eb21aee2070be32ff721c9be7e Mon Sep 17 00:00:00 2001 From: v_wbxiongli <740332065@qq.com> Date: Thu, 28 Dec 2023 22:00:57 +0800 Subject: [PATCH] update bin Signed-off-by: v_wbxiongli <740332065@qq.com> --- java/osx/bin/service.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java/osx/bin/service.sh b/java/osx/bin/service.sh index 837b542cdc..df54214cf5 100644 --- a/java/osx/bin/service.sh +++ b/java/osx/bin/service.sh @@ -155,12 +155,12 @@ status() { getpid # check service is up and running if [[ -n ${pid} ]]; then - print_ok "Check service ${module} is started: PID=${pid}${esc_c}" + print_ok "Check service ${project_name]} is started: PID=${pid}${esc_c}" print_info "The service status is: `ps aux | grep ${pid} | grep ${main_class} | grep -v grep`" return 0 else - print_error "The ${module} service is not running" + print_error "The ${project_name} service is not running" return 1 fi } @@ -182,7 +182,7 @@ check_java_environment() { fi #检查 Java 版本 - java_version=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}') + java_version=$($JAVA -version 2>&1 | awk -F '"' '/version/ {print $2}') if [ -n "$java_version" ]; then print_ok "Java version is $java_version" export JAVA="java" @@ -210,7 +210,7 @@ choose_gc_log_directory() if [ -d "/dev/shm" ]; then GC_LOG_DIR="/dev/shm" else - GC_LOG_DIR=${BASE_DIR} + GC_LOG_DIR=${OSX_HOME} fi ;; esac