<div dir="ltr">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.<div>I only find a variety of hacks, which include running releases *not* in detached mode.</div><div><br></div><div>Any other recommendations?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 11, 2015 at 10:32 PM, Éric Pailleau <span dir="ltr"><<a href="mailto:eric.pailleau@wanadoo.fr" target="_blank">eric.pailleau@wanadoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
No, in fact, I m working on this.<br>
To be short, the wrapper might be posix compliant and trap signals, create the pidfile set the heart command and launch the release.<br>
I will maybe share my work once ready, but so many thing to do and do little time... ;-)<br>
<div class="HOEnZb"><div class="h5"><br>
Le 11 mai 2015 22:23, Roberto Ostinelli <<a href="mailto:roberto.ostinelli@widetag.com">roberto.ostinelli@widetag.com</a>> a écrit :<br>
><br>
> Hi Eric,<br>
> Thank you. Do you have a recommended starter script?<br>
><br>
><br>
><br>
> > On 11/mag/2015, at 22:11, Éric Pailleau <<a href="mailto:eric.pailleau@wanadoo.fr">eric.pailleau@wanadoo.fr</a>> wrote:<br>
> ><br>
> > Hi Roberto,<br>
> ><br>
> > Good question. Heart was probably initially used for embedded systems.<br>
> > Monitoring your node is not that much easy,<br>
> > Because no pid file is created out of the box. It ends by using a wrapper that create a pidfile.<br>
> > Heart is also needful for hot upgrades when reboot of emulator is necessary.<br>
> > Mho,  you should set the HEART_command to your starter script in order to create another pidfile on reboot. See heart module documentation.<br>
> > Regards<br>
> ><br>
> > Le 11 mai 2015 21:13, Roberto Ostinelli <<a href="mailto:roberto.ostinelli@widetag.com">roberto.ostinelli@widetag.com</a>> a écrit :<br>
> >><br>
> >> Dear list,<br>
> >> I'm a little confused and would like to understand whether the HEART command should be used or not.<br>
> >><br>
> >> 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.<br>
> >><br>
> >> 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?<br>
> >><br>
> >> The warning in the docs makes me hesitate.<br>
> >><br>
> >> Any input welcome.<br>
> >><br>
> >> Thanks!<br>
> >> r.<br>
> >> _______________________________________________<br>
> >> erlang-questions mailing list<br>
> >> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> >> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>