chalsliu commented on issue #365: Failed to start Doris BE on centos 7 URL: https://github.com/apache/incubator-doris/issues/365#issuecomment-442450897 ``` if [ -f $pidfile ]; then if kill -0 $(cat $pidfile); then echo "Backend running as process `cat $pidfile`. Stop it first." exit 1 else rm $pidfile fi fi ``` Solution: Don't use kill to send a signal to check whether the process is started. A better way is to verify the existence of the /proc/$pid path. This method can further obtain other information about the process for more accurate judgment.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
