[erlang-questions] running an Erlang OTP application on a production Linux server
Mon Sep 20 06:08:11 CEST 2010
Do you have upstart? This is what I use:
start on filesystem and net-device-up
stop on runlevel 
exec sudo su nobody -c "erl +Bd +K true +A 32 -noinput -mnesia dir
'\"/path/to/mnesiadir\"' -eval \"application:start(myapp,permanent)\""
On Mon, Sep 20, 2010 at 2:33 AM, Jim Morris <wolfmanjm@REDACTED> wrote:
> I recently needed to deploy a full blown OTP application on a
> production Linux server, with all the always up, auto restart if VM
> dies, start on server boot etc.
> After much Googling and reading I came up with my own (convoluted)
> solution which I hope others will find interesting.
> My take is that if Erlang were able to capture and handle Linux
> signals like TERM within an OTP application my job would have been a
> lot simpler :)
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
More information about the erlang-questions