From b6b9df06dbe8c17ad319242adaf51bfa5aa73c60 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sun, 12 Feb 2023 10:00:18 +0100 Subject: [PATCH 1/7] fix(bin/emqx): drop remsh and escript from ps -ef outputs --- bin/emqx | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) 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.