aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2019-03-31 20:09:34 -0600
committerGitHub <[email protected]>2019-03-31 20:09:34 -0600
commita0706e46bc9b976afe80a0a8c0bbcc595f6b0b63 (patch)
treedb715ad20650026f7fb6f4f3660650d5b6c491b3
parent8420f6f43d5049514bfa1636240322fcbe0f440d (diff)
downloadrelx-a0706e46bc9b976afe80a0a8c0bbcc595f6b0b63.tar.gz
relx-a0706e46bc9b976afe80a0a8c0bbcc595f6b0b63.tar.bz2
relx-a0706e46bc9b976afe80a0a8c0bbcc595f6b0b63.zip
RUNNER_LOG_DIR is only used in 'start' so only make it there (#699)
-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"