Merge pull request #8691 from zmstone/0811-no-crash-dump-when-trying-to-start-erl
0811 no crash dump when checking erl start
This commit is contained in:
commit
718eaa94a7
9
bin/emqx
9
bin/emqx
|
@ -33,6 +33,10 @@ export PROGNAME="erl"
|
||||||
DYNLIBS_DIR="$RUNNER_ROOT_DIR/dynlibs"
|
DYNLIBS_DIR="$RUNNER_ROOT_DIR/dynlibs"
|
||||||
ERTS_LIB_DIR="$ERTS_DIR/../lib"
|
ERTS_LIB_DIR="$ERTS_DIR/../lib"
|
||||||
|
|
||||||
|
# Fix bin permission for all erts bin files
|
||||||
|
# the 'x' attributes may get lost if the files are extracted from a relup package
|
||||||
|
find "$BINDIR" -exec chmod a+x {} \;
|
||||||
|
|
||||||
# Echo to stderr on errors
|
# Echo to stderr on errors
|
||||||
echoerr() { echo "$*" 1>&2; }
|
echoerr() { echo "$*" 1>&2; }
|
||||||
|
|
||||||
|
@ -50,9 +54,8 @@ assert_node_alive() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check_erlang_start() {
|
check_erlang_start() {
|
||||||
# Fix bin permission
|
# set ERL_CRASH_DUMP_BYTES to zero so it will not write a crash dump file
|
||||||
find "$BINDIR" ! -executable -exec chmod a+x {} \;
|
env ERL_CRASH_DUMP_BYTES=0 "$BINDIR/$PROGNAME" -boot "$REL_DIR/start_clean" -eval "crypto:start(),halt()"
|
||||||
"$BINDIR/$PROGNAME" -boot "$REL_DIR/start_clean" -eval "crypto:start(),halt()"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! check_erlang_start >/dev/null 2>&1; then
|
if ! check_erlang_start >/dev/null 2>&1; then
|
||||||
|
|
Loading…
Reference in New Issue