rickchengx opened a new pull request, #12118: URL: https://github.com/apache/dolphinscheduler/pull/12118
<!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.--> ## Purpose of the pull request close: #12109 If the user starts DS twice (or more) using `dolphinscheduler-daemon.sh`, the `pid` file will be overwritten, making it impossible to stop the initially started DS cluster. ## Brief change log * Use `pid` to check the status of the server * If the server is already started, cancel this launch ## Verify this pull request manually tested 1. Start all the server and `ps -ef`as below <img width="896" alt="image" src="https://user-images.githubusercontent.com/38122586/191886250-332762be-0201-445f-a0cd-64d6176bad81.png"> 2. Start all the server again <img width="896" alt="截屏2022-09-23 11 21 00" src="https://user-images.githubusercontent.com/38122586/191886323-5d037d5e-47a4-40cb-8477-8170f23aeb47.png"> 3. the result of `ps -ef` is unchanged <img width="894" alt="image" src="https://user-images.githubusercontent.com/38122586/191886400-cd994978-a38b-464e-bb19-df9a74417c6e.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]
