rickchengx commented on code in PR #12118:
URL: 
https://github.com/apache/dolphinscheduler/pull/12118#discussion_r1009002835


##########
script/dolphinscheduler-daemon.sh:
##########
@@ -81,8 +79,26 @@ else
   exit 1
 fi
 
+state=""
+function get_server_running_status() {
+  state="STOP"
+  if [ -f $pid ]; then
+    TARGET_PID=`cat $pid`
+    server_running_count=`ps -p $TARGET_PID --no-headers | wc -l`

Review Comment:
   > It seems like `--no-headers` can not be running in `MacOS`. It's better to 
use a compatible way.
   
   @SbloodyS Thanks a lot for pointing out that, I have removed `--ho-headers`.
   
   <img width="370" alt="image" 
src="https://user-images.githubusercontent.com/38122586/198925427-aa31bfb2-ed5a-4d77-b295-256e762a4cdc.png";>
   



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to