Skip to content

Commit 77f1178

Browse files
committed
As escript doesn't startup epmd, you need to ensure it's started...this is hacky, but an easy way to deal with the problem
1 parent 27df9e9 commit 77f1178

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/basho_bench.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ maybe_net_node(Opts) ->
141141
case lists:keyfind(net_node, 1, Opts) of
142142
{_, Node} ->
143143
{_, Cookie} = lists:keyfind(net_cookie, 1, Opts),
144+
os:cmd("epmd -daemon"),
144145
net_kernel:start([Node, longnames]),
145146
erlang:set_cookie(Node, Cookie),
146147
ok;

0 commit comments

Comments
 (0)