From a27b452fe7ba65ddba2617aa575ede81aec538c7 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Tue, 9 Nov 2021 21:06:37 +0100 Subject: [PATCH 1/7] chore(bin/emqx): bash set -o --- bin/emqx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/bin/emqx b/bin/emqx index a97e13884..f8c4d3f6c 100755 --- a/bin/emqx +++ b/bin/emqx @@ -2,8 +2,7 @@ # -*- tab-width:4;indent-tabs-mode:nil -*- # ex: ts=4 sw=4 et -set -e -set -o pipefail +set -euo pipefail DEBUG="${DEBUG:-0}" if [ "$DEBUG" -eq 1 ]; then @@ -171,11 +170,9 @@ if [ "$ES" -ne 0 ]; then exit $ES fi -if [ -z "$WITH_EPMD" ]; then - EPMD_ARG="-start_epmd false -epmd_module ekka_epmd -proto_dist ekka" -else - EPMD_ARG="-start_epmd true $PROTO_DIST_ARG" -fi +# EPMD_ARG="-start_epmd true $PROTO_DIST_ARG" +NO_EPMD="-start_epmd false -epmd_module ekka_epmd -proto_dist ekka" +EPMD_ARG="${EPMD_ARG:-${NO_EPMD}}" # Warn the user if ulimit -n is less than 1024 ULIMIT_F=$(ulimit -n) From 1480bb61585d9bb10a663bbc38f6b7f190d4d03b Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Tue, 9 Nov 2021 21:13:05 +0100 Subject: [PATCH 2/7] chore(bin/emqx): delete RELX_CONFIG_PATH this variable is to allow setting sys.config by user however this feature is now broken because the we always generate app.