Skip to content

Commit

Permalink
hooks/pre_start: Hide output
Browse files Browse the repository at this point in the history
Avoid "erl" printing the following message to the standard output:

| Protocol 'inet_tcp': register/listen error: econnrefused

The happens because the node tries to talk to EPMD, which isn't running.
Could also be avoided by specifying e.g. "-erl_epmd_port 3470", but we'd
rather not assume a specific port being available on the target system.
  • Loading branch information
weiss committed Sep 28, 2023
1 parent 6e88937 commit d4ebf36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overlay/hooks/pre_start
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ then
-start_epmd 'false' \
-sname 'cookie' \
-eval 'halt()' \
2>'/dev/null' || :
>'/dev/null' 2>&1 || :

if [ -r "$DEFAULT_COOKIE_FILE" ]
then
Expand Down

0 comments on commit d4ebf36

Please sign in to comment.