Skip to content

Commit

Permalink
Minimised differences with upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier-Boudeville committed Aug 16, 2020
1 parent 0be3b94 commit ad37eef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions priv/templates/extended_bin
Original file line number Diff line number Diff line change
Expand Up @@ -714,14 +714,14 @@ case "$1" in
"$BINDIR/run_erl" -daemon "$PIPE_DIR" "$RUNNER_LOG_DIR" \
"exec \"$RELEASE_ROOT_DIR/bin/$REL_NAME\" \"$START_OPTION\" $ARGS --relx-disable-hooks"

# Wait for node to be up before running any hooks
while ! erl_rpc erlang is_alive > /dev/null 2>&1
# wait for node to be up before running hooks
while ! erl_rpc erlang is_alive > /dev/null 2>&1
do
sleep 1
done
done

relx_run_hooks "$POST_START_HOOKS"
;;
;;

stop)
relx_run_hooks "$PRE_STOP_HOOKS"
Expand All @@ -735,8 +735,8 @@ case "$1" in
sleep 1
done

# Wait for node to be down before running any hooks
while erl_rpc erlang is_alive > /dev/null 2>&1
# wait for node to be down before running hooks
while erl_rpc erlang is_alive > /dev/null 2>&1
do
sleep 1
done
Expand Down

0 comments on commit ad37eef

Please sign in to comment.