[erlang-questions] What's the proper/right way to run erlang in the background?
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
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
So sometimes you need to use run_erl and to_erl to launch and connect to
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...
More information about the erlang-questions