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

   > 
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` to check 
the status of process 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 alt="截屏2022-11-01 11 05 54" width="832" 
src="https://user-images.githubusercontent.com/38122586/199150617-986c9dce-af8a-40d9-b666-ff55ad7b1c41.png";>
   
   Nice work :+1: 


-- 
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