[erlang-questions] Dependencies, included applications and supervision

Loïc Hoguin essen@REDACTED
Wed Jun 25 22:50:49 CEST 2014


On 06/25/2014 10:42 PM, Jay Nelson wrote:
> Why does crypto code always do this?

Not sure what you mean? crypto is a library it doesn't need to be started.

> What if your application goes down but doesn’t take the VM with it?

If you configure the VM to do that you probably have good reasons and 
*don't* want it to restart. For example to debug things out.

Configuring the VM to crash, and it failing to do so, has about the same 
chances of happening as your supervisor not restarting the 
included_application.

> If there is a dependency, you must ensure that the required application
> is started, not just when you start your application, but at any time later
> after which it may have subsequently failed.

Only if you want to restart it, which you don't.

-- 
Loïc Hoguin
http://ninenines.eu



More information about the erlang-questions mailing list