[erlang-questions] Starting Erlang as a Unix daemon

Claes Wikström <>
Fri Jan 9 23:58:44 CET 2009

Sam Bobroff wrote:

> I've tried using both "run_erl" and "erl -detached" but both of them
> seem to fork and exit before any user code is run.
> Does anyone know a good way to handle this?

There is unfortunately no good way to do this. The only
option is to have some auxiliary code that runs after the
detached erl process and checks for liveness.


More information about the erlang-questions mailing list