rickchengx commented on PR #12118:
URL: 
https://github.com/apache/dolphinscheduler/pull/12118#issuecomment-1297966548

   
https://github.com/apache/spark/blob/a01b86f9d4651562f960745fc621d710ae9295cc/sbin/spark-daemon.sh#L161-L173
   
![image](https://user-images.githubusercontent.com/38122586/199150579-660cfdf1-ed10-4287-8cef-da7b82b18e3d.png)
   
   Hi, @caishunfeng I refer to `spark-daemon.sh` and make some modifications as 
below
   
   * Use `if [[ $(ps -p "$TARGET_PID" -o comm=) =~ "bash" ]]; then` since ds 
use `bash <server>/bin/start.sh` to start the process.
   * echo the process PID `echo "$command running as process $TARGET_PID.  Stop 
it first."`
   
   Test Result
   
   <img width="832" alt="截屏2022-11-01 11 05 54" 
src="https://user-images.githubusercontent.com/38122586/199150617-986c9dce-af8a-40d9-b666-ff55ad7b1c41.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