[erlang-questions] HEART

Roberto Ostinelli roberto@REDACTED
Tue May 12 17:31:05 CEST 2015


I still can't seem to find anything decent on a proper way to start an
Erlang Release on system boot, and a watchdog to restart it if the VM
crashes.
I only find a variety of hacks, which include running releases *not* in
detached mode.

Any other recommendations?

On Mon, May 11, 2015 at 10:32 PM, Éric Pailleau <eric.pailleau@REDACTED>
wrote:

> Hi,
> No, in fact, I m working on this.
> To be short, the wrapper might be posix compliant and trap signals, create
> the pidfile set the heart command and launch the release.
> I will maybe share my work once ready, but so many thing to do and do
> little time... ;-)
>
> Le 11 mai 2015 22:23, Roberto Ostinelli <roberto.ostinelli@REDACTED> a
> écrit :
> >
> > Hi Eric,
> > Thank you. Do you have a recommended starter script?
> >
> >
> >
> > > On 11/mag/2015, at 22:11, Éric Pailleau <eric.pailleau@REDACTED>
> wrote:
> > >
> > > Hi Roberto,
> > >
> > > Good question. Heart was probably initially used for embedded systems.
> > > Monitoring your node is not that much easy,
> > > Because no pid file is created out of the box. It ends by using a
> wrapper that create a pidfile.
> > > Heart is also needful for hot upgrades when reboot of emulator is
> necessary.
> > > Mho,  you should set the HEART_command to your starter script in order
> to create another pidfile on reboot. See heart module documentation.
> > > Regards
> > >
> > > Le 11 mai 2015 21:13, Roberto Ostinelli <roberto.ostinelli@REDACTED>
> a écrit :
> > >>
> > >> Dear list,
> > >> I'm a little confused and would like to understand whether the HEART
> command should be used or not.
> > >>
> > >> In non-erlang systems, I would have standard watchdogs that launch an
> application on OS boot, and then monitor it and relaunch it if necessary.
> > >>
> > >> What is the best practice in the erlang world? A script to start an
> erlang release at boot time, and use the HEART command? Others?
> > >>
> > >> The warning in the docs makes me hesitate.
> > >>
> > >> Any input welcome.
> > >>
> > >> Thanks!
> > >> r.
> > >> _______________________________________________
> > >> erlang-questions mailing list
> > >> erlang-questions@REDACTED
> > >> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150512/e6909370/attachment.htm>


More information about the erlang-questions mailing list