[erlang-questions] Make sure epmd is running?

Judson Lester nyarly@REDACTED
Thu Nov 12 19:08:43 CET 2015

I just ran across this code I wrote a few months ago:

_Hack = os:cmd("epmd -daemon"),  % XXX dirty hack to make sure epmd is

Obviously, I promised myself at the time that I'd fix it later. Is there a
better fix, though? The program is a command line app, so ideally I'd
rather not require that the operator know about epmd (or indeed anything
about operating an Erlang system, if possible), so I considered something
about "here's how to make sure that epmd starts at boot" or something, but
it seemed worse given the use case than the above.

So, is there a tidy way to start-epmd-if-not-running from within Erlang?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151112/13963758/attachment.htm>

More information about the erlang-questions mailing list