Standard unix daemon
Sun Apr 2 01:32:20 CEST 2006
You have several options, two of which are:
1. Start Erlang with -detached -noshell options
2. Use run_erl / start_erl to start Erlang.
The second method is preferred.
> 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 ?
More information about the erlang-questions