application startup
Sean Hinde
sean.hinde@REDACTED
Fri Aug 12 23:46:05 CEST 2005
On 12 Aug 2005, at 22:21, Serge Aleynikov wrote:
>
> I was under impression that if an application is listed in the
> *.rel file, it should be loaded but not started. In order for it
> to be started it must be included in the {applications, ...} tuple
> of the *.app file. However, what I am observing is that all apps
> that are listed in the *.rel file are started automatically. Am I
> doing something wrong?
>
> ====== drpdb.rel ========
> {release, {"drpdb","1.0"}, {erts, "5.4.8"},
> [{kernel,"2.10.9"},
> {stdlib,"1.13.8"},
> {sasl, "2.0.1"},
> {drpdb, "1.0"},
> {os_mon, "1.7.4"},
> {mnesia, "4.2.2"}
> ]}.
>
>
> ====== drpdb.app ========
> {application, drpdb,
> [
> {description, "Master Database Server"},
> {vsn, "1.0"},
> {id, "drpdb"},
> {modules,
> [
> drpdb_app,
> drpdb_sup,
> drpdb
> ]
> },
> {registered, [ drpdb_sup, drpdb ] },
> {applications, [ kernel, sasl ] },
> {mod, {drpdb_app, []}},
^^^^^^^^^^^^^^^^^^^^^^^
> {env, []}
> ]
> }.
The mod entry in the .app file is the thing which causes the
application to start.
Sean
More information about the erlang-questions
mailing list