[erlang-questions] Make sure epmd is running?

Garrett Smith g@REDACTED
Thu Nov 12 19:45:04 CET 2015


I would treat this as a requirement for Erlang in the first place (it
is certainly for distributed Erlang) and orchestrate epmd
start/monitoring at the OS level.

For dev mode on your workstation, the hack is probably fine.

For a production system, start epmd explicitly and supervise it (e.g.
using systemd, runit, etc. - whatever you're system is using for
init).

On Thu, Nov 12, 2015 at 12:08 PM, Judson Lester <nyarly@REDACTED> wrote:
> 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
> running
>
> 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?
>
> Judson
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list