Tencent / TubeMQ

TubeMQ has been donated to the Apache Software Foundation and renamed to InLong, please visit the new Apache repository: https://github.com/apache/incubator-inlong
https://inlong.apache.org/
2.02k stars 388 forks source link

fixed checking broker or master process #26

Closed carylu closed 5 years ago

carylu commented 5 years ago

The .run.pid file was not deleted when the process exited abnormally. When restarting, if there is a process with the same pid, it will be misjudged that the process already exists.

gosonzhang commented 5 years ago

Thanks for your contribution @carylu.

I think that you should check zhe $BASE_DIR token value, it should be "tubemq.home", not "tube.home"

gosonzhang commented 5 years ago

thanks!