diff --git a/bin/emqx b/bin/emqx index 0a967a73c..911087416 100755 --- a/bin/emqx +++ b/bin/emqx @@ -464,9 +464,29 @@ if [ "$IS_BOOT_COMMAND" = 'yes' ]; then export EMQX_BOOT_CONFIGS fi else - # For non-boot commands, we try to get data_dir and ssl_dist_optfile from 'ps -ef' output + # For non-boot commands, we need below runtime facts to connect to the running node: + # 1. The running node name. + # 2. The Erlang cookie in use by the running node name. + # 3. SSL options if the node is using TLS for Erlang distribution + # + # There are 3 sources of truth to get those runtime information. + # Listed in the order of preference: + # 1. The boot command (which can be inspected from 'ps -ef' command output) + # 2. The generated app.