diff options
author | Richard Jones <[email protected]> | 2014-12-11 11:43:21 +0000 |
---|---|---|
committer | Richard Jones <[email protected]> | 2014-12-11 11:43:21 +0000 |
commit | 785975c9ecb9e3681ca2d6b08a3470192c552b08 (patch) | |
tree | da626d90fb8e3f70fc925ca43279b40670c0669a /priv/templates/extended_bin.dtl | |
parent | abba53cc41747654b50a1eff355172d98d228f77 (diff) | |
download | relx-785975c9ecb9e3681ca2d6b08a3470192c552b08.tar.gz relx-785975c9ecb9e3681ca2d6b08a3470192c552b08.tar.bz2 relx-785975c9ecb9e3681ca2d6b08a3470192c552b08.zip |
check for CODE_LOADING_MODE in extended bin script, default to 'embedded'
Diffstat (limited to 'priv/templates/extended_bin.dtl')
-rw-r--r-- | priv/templates/extended_bin.dtl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl index bd1e981..751b01f 100644 --- a/priv/templates/extended_bin.dtl +++ b/priv/templates/extended_bin.dtl @@ -7,6 +7,7 @@ RELEASE_ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" REL_NAME="{{ rel_name }}" REL_VSN="{{ rel_vsn }}" ERTS_VSN="{{ erts_vsn }}" +CODE_LOADING_MODE="${CODE_LOADING_MODE:-embedded}" REL_DIR="$RELEASE_ROOT_DIR/releases/$REL_VSN" ERL_OPTS="{{ erl_opts }}" RUNNER_LOG_DIR="${RUNNER_LOG_DIR:-$RELEASE_ROOT_DIR/log}" @@ -359,7 +360,7 @@ case "$1" in # Build an array of arguments to pass to exec later on # Build it here because this command will be used for logging. set -- "$BINDIR/erlexec" $FOREGROUNDOPTIONS \ - -boot "$REL_DIR/$BOOTFILE" -mode embedded -config "$CONFIG_PATH" \ + -boot "$REL_DIR/$BOOTFILE" -mode "$CODE_LOADING_MODE" -config "$CONFIG_PATH" \ -boot_var ERTS_LIB_DIR "$ERTS_LIB_DIR" \ -args_file "$VMARGS_PATH" |