Skip to content

Commit

Permalink
Merge pull request #899 from tsloughter/erl-dist-port-warning
Browse files Browse the repository at this point in the history
print a warning about use of ERL_DIST_PORT on erts prior to 11.1
  • Loading branch information
tsloughter authored Dec 31, 2021
2 parents 14f80c9 + f8da344 commit 16a7972
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions priv/templates/extended_bin
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,13 @@ if [ "$ERL_DIST_PORT" ]; then
EXTRA_DIST_ARGS="-erl_epmd_port ${ERL_DIST_PORT}"
fi
else
ERL_DIST_PORT_WARNING="ERL_DIST_PORT is set and used to set the port, but doing so on ERTS version ${ERTS_VSN} means remsh/rpc will not work for this release"
if ! command -v logger > /dev/null 2>&1
then
echo "WARNING: ${ERL_DIST_PORT_WARNING}"
else
logger -p warning -t "${REL_NAME}[$$]" "${ERL_DIST_PORT_WARNING}"
fi
EXTRA_DIST_ARGS="-kernel inet_dist_listen_min ${ERL_DIST_PORT} -kernel inet_dist_listen_max ${ERL_DIST_PORT}"
fi
fi
Expand Down

0 comments on commit 16a7972

Please sign in to comment.