aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/extended_bin
diff options
context:
space:
mode:
Diffstat (limited to 'priv/templates/extended_bin')
-rwxr-xr-xpriv/templates/extended_bin6
1 files changed, 3 insertions, 3 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin
index 7e6dd29..76d2d38 100755
--- a/priv/templates/extended_bin
+++ b/priv/templates/extended_bin
@@ -457,9 +457,6 @@ esac
# Export the variable so that it's available in the 'eval' calls
export NAME
-# Make sure log directory exists
-mkdir -p "$RUNNER_LOG_DIR"
-
test -z "$PIPE_DIR" && PIPE_BASE_DIR='/tmp/erl_pipes/'
PIPE_DIR="${PIPE_DIR:-/tmp/erl_pipes/$NAME/}"
@@ -511,6 +508,9 @@ case "$1" in
exit 1
fi
+ # Make sure log directory exists
+ mkdir -p "$RUNNER_LOG_DIR"
+
relx_run_hooks "$PRE_START_HOOKS"
"$BINDIR/run_erl" -daemon "$PIPE_DIR" "$RUNNER_LOG_DIR" \
"exec \"$RELEASE_ROOT_DIR/bin/$REL_NAME\" \"$START_OPTION\" $ARGS --relx-disable-hooks"