diff --git a/script/dolphinscheduler-daemon.sh b/script/dolphinscheduler-daemon.sh index a75a9c94b3..1c72400916 100755 --- a/script/dolphinscheduler-daemon.sh +++ b/script/dolphinscheduler-daemon.sh @@ -98,7 +98,7 @@ case $startStop in (status) # more details about the status can be added later - serverCount=`ps -ef |grep "$CLASS" |grep -v "grep" |wc -l` + serverCount=`ps -ef | grep "$DOLPHINSCHEDULER_HOME" | grep "$CLASS" | grep -v "grep" | wc -l` state="STOP" # font color - red state="[ \033[1;31m $state \033[0m ]"