<div dir="ltr">Hi Carlo,<div><br></div><div>Your interpretation is correct.</div><div>The applications listed in the .app file are simply *required* to be started before the given application. They are not started automatically.</div><div>You can create a "release" (i.e. wrap a set of applications into a single entity) and specify which applications to start there.</div><div>See: <a href="http://learnyousomeerlang.com/release-is-the-word">http://learnyousomeerlang.com/release-is-the-word</a></div><div>Or you can use the "ensure_all_started" approach, as Steve suggests while I'm still typing this.</div><div><br></div><div>Cheers,</div><div><br></div><div>Roberto</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 October 2014 21:14, Carlo Pires <span dir="ltr"><<a href="mailto:carlopires@gmail.com" target="_blank">carlopires@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,<br><br></div>I'm trying to start and application from erlang REPL and got the message:<br><br>2> application:start(echo_test).<br>{error,{not_started,erlzmq}}<br clear="all"><div><div><br></div><div>But erlzmq is listed in applications section of OTP app file:<br><br>{application, echo_test,<br> [<br>  {description, "Echo test with erlzmq2"},<br>  {vsn, "1"},<br>  {modules, [echo_test, echo_test_sup, echo_test_app]},<br>  {registered, [echo_test_sup]},<br>  {applications, [kernel, stdlib, erlzmq]},<br>  {mod, {echo_test_app, []}},<br>  {env, []}<br> ]}.<br><br></div><div>Looking at some apps from github I noticed the use of a mechanism like *ensure_app_start* in each app:start() function.<br><br></div><div>So, Isn't supposed that erlang OTP app controller will start the dependent applications listed in app file? What am I missing here?<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br><br></div><div>-- <br><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px">  Carlo Pires<br></span>
</div></font></span></div></div>
<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Roberto Aloi<br>---<br>Website: <a href="http://roberto-aloi.com" target="_blank">http://roberto-aloi.com</a><br>Twitter: @robertoaloi<br>
</div>