Good point about the init.d process, I'd neglected that. So far it seems like that will meet my need.<div><br></div><div>-dan<br><br><div class="gmail_quote">On Thu, Oct 25, 2012 at 4:42 PM, Yogish Baliga <span dir="ltr"><<a href="mailto:baliga@gmail.com" target="_blank">baliga@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you have a script in /etc/init.d (on Unix flavored OS), stop is called on each them.<span class="HOEnZb"><font color="#888888"><div>
<br></div></font></span><div><span class="HOEnZb"><font color="#888888">-- baliga<br><br></font></span><div class="gmail_quote"><div><div class="h5">On Thu, Oct 25, 2012 at 11:07 AM, Daniel Dormont <span dir="ltr"><<a href="mailto:dan@greywallsoftware.com" target="_blank">dan@greywallsoftware.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Or, more precisely: I am running an Erlang VM as a daemon on Linux, with a number of applications (Ejabberd and its various dependencies such as Mnesia, specifically). When I issue a shutdown command on the machine, is there a way to have the Erlang VM receive a signal and cleanly shutdown all running applications? Or do I need to use some kind of custom script (for example, Ejabberd includes ejabberdctl which has a stop command, so I guess I could issue that and wait a bit before halting)?<div>
<br></div><div>thanks</div><div>-Dan</div>
<br></div></div><div class="im">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">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>
<br></div></blockquote></div><br></div>
</blockquote></div><br></div>