[erlang-questions] What's the proper/right way to run erlang in the background?

Max Lapshin max.lapshin@REDACTED
Mon Oct 21 15:38:59 CEST 2013


erl -detached is ok except several problems:

1) if you have any problems with communication with node, it is very hard
to stop it. If you kill epmd, you will have big problems with shutting down
node.

2) if you have some problems with startup that doesn't allow to start node
(common problem: you connect to database in main application supervisor and
everything just dies on start), you will not be able to find any debug logs
about it.

So sometimes you need to use  run_erl and to_erl to launch and connect to
flussonic.

But beware tricky run_erl behaviour. It uses fsync to record on disk every
single line of output. So with run_erl you need to lower console debug
level to something like "very important" or even "critical" depending on
the logger you are using.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131021/8cfa26b8/attachment.htm>


More information about the erlang-questions mailing list