Skip to content

Commit

Permalink
Merge pull request #744 from colrack/start_epmd_fix
Browse files Browse the repository at this point in the history
Fix undesired start of epmd when calling relx_get_nodename
  • Loading branch information
tsloughter authored Aug 19, 2019
2 parents 7d70b98 + c11c2cd commit ade76d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions priv/templates/extended_bin
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ relx_get_nodename() {
-mode interactive \
-boot_var ERTS_LIB_DIR "$ERTS_LIB_DIR" \
-eval '[_,H]=re:split(atom_to_list(node()),"@",[unicode,{return,list}]), io:format("~s~n",[H]), halt()' \
${START_EPMD} \
-noshell ${NAME_TYPE} $id
else
# running with setcookie prevents a ~/.erlang.cookie from being created
Expand All @@ -162,6 +163,7 @@ relx_get_nodename() {
-boot_var ERTS_LIB_DIR "$ERTS_LIB_DIR" \
-eval '[_,H]=re:split(atom_to_list(node()),"@",[unicode,{return,list}]), io:format("~s~n",[H]), halt()' \
-setcookie ${COOKIE} \
${START_EPMD} \
-noshell ${NAME_TYPE} $id
fi
}
Expand Down

0 comments on commit ade76d1

Please sign in to comment.