chore(bin/emqx): bash set -o
This commit is contained in:
parent
c911876511
commit
a27b452fe7
11
bin/emqx
11
bin/emqx
|
@ -2,8 +2,7 @@
|
||||||
# -*- tab-width:4;indent-tabs-mode:nil -*-
|
# -*- tab-width:4;indent-tabs-mode:nil -*-
|
||||||
# ex: ts=4 sw=4 et
|
# ex: ts=4 sw=4 et
|
||||||
|
|
||||||
set -e
|
set -euo pipefail
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
DEBUG="${DEBUG:-0}"
|
DEBUG="${DEBUG:-0}"
|
||||||
if [ "$DEBUG" -eq 1 ]; then
|
if [ "$DEBUG" -eq 1 ]; then
|
||||||
|
@ -171,11 +170,9 @@ if [ "$ES" -ne 0 ]; then
|
||||||
exit $ES
|
exit $ES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$WITH_EPMD" ]; then
|
# EPMD_ARG="-start_epmd true $PROTO_DIST_ARG"
|
||||||
EPMD_ARG="-start_epmd false -epmd_module ekka_epmd -proto_dist ekka"
|
NO_EPMD="-start_epmd false -epmd_module ekka_epmd -proto_dist ekka"
|
||||||
else
|
EPMD_ARG="${EPMD_ARG:-${NO_EPMD}}"
|
||||||
EPMD_ARG="-start_epmd true $PROTO_DIST_ARG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Warn the user if ulimit -n is less than 1024
|
# Warn the user if ulimit -n is less than 1024
|
||||||
ULIMIT_F=$(ulimit -n)
|
ULIMIT_F=$(ulimit -n)
|
||||||
|
|
Loading…
Reference in New Issue