[erlang-questions] running an Erlang OTP application on a production Linux server

Rapsey rapsey@REDACTED
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 [06]

env HOME=/home/ubuntu

chdir path/to/ebin
exec sudo su nobody -c "erl +Bd +K true +A 32 -noinput -mnesia dir
'\"/path/to/mnesiadir\"' -eval \"application:start(myapp,permanent)\""
end script


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.
> http://blog.wolfman.com/articles/2010/9/19/running-erlang-otp-applications-as-daemons-on-ubuntu-servers
> 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 mailing list