You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/08/17 14:32:26 UTC

[GitHub] [dolphinscheduler] ruanwenjun commented on a diff in pull request #11182: [fix-11176][Bug] [script] dolphinscheduler-daemon.sh Status error #11176

ruanwenjun commented on code in PR #11182:
URL: https://github.com/apache/dolphinscheduler/pull/11182#discussion_r948019645


##########
script/dolphinscheduler-daemon.sh:
##########
@@ -108,19 +108,19 @@ case $startStop in
       ;;
 
   (status)
-    # more details about the status can be added later
-    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 ]"
-    if [[ $serverCount -gt 0 ]];then
-      state="RUNNING"
-      # font color - green
-      state="[ \033[1;32m $state \033[0m ]"
-    fi
-    echo -e "$command  $state"
-    ;;
-
+      state="STOP"
+      state="[ \033[1;31m $state \033[0m ]"

Review Comment:
   Why you remove the comment `# font color - red`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org