aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/bin
diff options
context:
space:
mode:
Diffstat (limited to 'priv/templates/bin')
-rwxr-xr-xpriv/templates/bin3
1 files changed, 2 insertions, 1 deletions
diff --git a/priv/templates/bin b/priv/templates/bin
index 523b88d..e2a54be 100755
--- a/priv/templates/bin
+++ b/priv/templates/bin
@@ -13,6 +13,7 @@ REL_VSN="{{ rel_vsn }}"
ERTS_VSN="{{ erts_vsn }}"
REL_DIR="$RELEASE_ROOT_DIR/releases/$REL_VSN"
ERL_OPTS="{{ erl_opts }}"
+export ESCRIPT_NAME="${ESCRIPT_NAME-$SCRIPT}"
find_erts_dir() {
__erts_dir="$RELEASE_ROOT_DIR/erts-$ERTS_VSN"
@@ -74,4 +75,4 @@ set -- "$ERL_OPTS"
set -- "$@" -boot_var ERTS_LIB_DIR "$ERTS_LIB_DIR" -boot "$REL_DIR/$BOOTFILE" "$ARGS"
# Boot the release
-$BINDIR/erlexec $@
+exec $BINDIR/erlexec $@