[erlang-questions] Re: application resource file

Ulf Wiger ulf.wiger@REDACTED
Mon Apr 4 21:45:25 CEST 2011


The docs say "All applications which *must* be started…".
It doesn't say that they will be started for you.

If you start your applications manually, you must ensure that they are started in the right order. Note that an application dependency can be fulfilled by an app started on another node.

If you generate a release, either using reltool, or simply building a bootscript either by hand, or by e.g. http://github.com/esl/setup, then systools will ensure that the applications are started in the right order.

BR,
Ulf W

On 4 Apr 2011, at 21:28, Wes James wrote:

> The docs here:
> 
> http://www.erlang.org/doc/design_principles/applications.html
> 
> say:
> 
> for the application part of the file:
> 
> applications
> All applications which must be started before this application is started. ....
> 
> but when I do application:start(myapp) with sasl in the applications
> section of the arf then I get an error {error,{not_started,sasl}}.  If
> I manually start sasl, application:start(sasl), then run
> application:start(myapp), then I don't get this error.  The docs say
> that items in this section will be started up before myapp starts.  It
> doesn't seem to be that way.
> 
> -wes
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

Ulf Wiger, CTO, Erlang Solutions, Ltd.
http://erlang-solutions.com






More information about the erlang-questions mailing list