The application resource file specifies the resources an
application uses, and how the application is started. There must
always be one application resource file called
The file is read by the application controller when an
application is loaded/started. It is also used by the functions in
The application resource file should be called
It must contain one single Erlang term, which is called an application specification:
{application, Application,
[{description, Description},
{id, Id},
{vsn, Vsn},
{modules, Modules},
{maxP, MaxP},
{maxT, MaxT},
{registered, Names},
{included_applications, Apps},
{applications, Apps},
{env, Env},
{mod, Start},
{start_phases, Phases},
{runtime_dependencies, RTDeps}]}.
Value Default
----- -------
Application atom() -
Description string() ""
Id string() ""
Vsn string() ""
Modules [Module] []
MaxP int() infinity
MaxT int() infinity
Names [Name] []
Apps [App] []
Env [{Par,Val}] []
Start {Module,StartArgs} []
Phases [{Phase,PhaseArgs}] undefined
RTDeps [ApplicationVersion] []
Module = Name = App = Par = Phase = atom()
Val = StartArgs = PhaseArgs = term()
ApplicationVersion = string()
For the application controller, all keys are optional. The respective default values are used for any omitted keys.
The functions in
A one-line description of the application.
Product identification, or similar.
The version of the application.
All modules introduced by this application.
Deprecated - will be ignored
The maximum number of processes allowed in the application.
The maximum time in milliseconds that the application is allowed to run. After the specified time the application will automatically terminate.
All names of registered processes started in this
application.
All applications which are included by this application. When this application is started, all included application will automatically be loaded, but not started, by the application controller. It is assumed that the topmost supervisor of the included application is started by a supervisor of this application.
All applications which must be started before this
application is allowed to be started.
Configuration parameters used by the application. The value
of a configuration parameter is retrieved by calling
Specifies the application callback module and a start
argument, see
The
A list of start phases and corresponding start arguments for
the application. If this key is present, the application
master will - in addition to the usual call to
Start phases may be used to synchronize startup of an
application and its included applications. In this case,
the
{mod, {application_starter,[Module,StartArgs]}}
The application master will then call
This implies that for an included application, the set of start phases must be a subset of the set of phases defined for the primary application. Refer to OTP Design Principles for more information.