<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Going to answer my own question here, sorry.<div><div><br></div><div>{my_app, load} in the rel_app list in the `rel` tuple in my retool.config fixes the problem.</div><div><br></div><div>Is that the correct way?</div><div><br></div><div>Cheers</div><div><br></div><div>Russell</div><div><br><div><div>On 26 Jul 2012, at 09:54, Russell Brown wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div>I have an application that wants to supervise another application. Looking at <a href="http://www.erlang.org/doc/design_principles/included_applications.html">http://www.erlang.org/doc/design_principles/included_applications.html</a> it seemed that an included application was the way to go.</div><div><br></div><div>I added the included app like this</div><div><br></div><div>  {included_applications, [the_app]},</div><div><br></div><div>in the primary applications .app file.</div><div><br></div><div>When I build a release with rebar under r15 the boot script does _NOT_ start the included app, as hoped and expected. However, the exact same code and config on r14 results in this line appearing in the boost script</div><div><br></div><div>{apply,{application,start_boot,[the_app,permanent]}},</div><div><br></div><div>Which means the app is started on boot, and my subsequent call to start the top level supervisor of the included app fails with `already_started`.</div><div><br></div><div>What is the correct way to include an app so that it is loaded, but not started, in r14, so that I may have my primary app call the top level supervisor of the included application, please?</div><div><br></div><div>Also, in Learn You some Erlang, there is a section that says "don't do this"  (<a href="http://learnyousomeerlang.com/the-count-of-applications#included-applications">http://learnyousomeerlang.com/the-count-of-applications#included-applications</a>.) Is there a better way to achieve what I am after?</div><div><br></div><div>Cheers</div><div><br></div><div>Russell</div><div><br></div><div><br></div></div></blockquote></div><br></div></div></body></html>