Standard unix daemon
Serge Aleynikov
serge@REDACTED
Sun Apr 2 01:32:20 CEST 2006
You have several options, two of which are:
1. Start Erlang with -detached -noshell options
http://www.erlang.org/doc/doc-5.4.13/erts-5.4.13/doc/html/erl.html
2. Use run_erl / start_erl to start Erlang.
http://www.erlang.org/doc/doc-5.4.13/erts-5.4.13/doc/html/run_erl.html
The second method is preferred.
Serge
Pupeno wrote:
> Hello,
> I have an Erlang application, it is a server, it can be started with
> application:start(appname) and stopped with application:stop(appname). Nice.
> But now I want to turn it into a unix/posix daemon to make it easier to run
> it on Linux servers.
> Here http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16 is the answer to
> the question "How do I get my program to act like a daemon?" of a Unix
> Programming FAQ. What of that should I do on Erlang ? How ?
> Thanks.
More information about the erlang-questions
mailing list