A configuration file contains values for configuration
parameters for the applications in the system. The command
erl -config Name
tells the system to use data in the
system configuration file Name.config
to override the
arguments contained in the application resource files for the
set of applications used by this system.
An application should call application:get_env(ApplName, Parameter) to retrieve the values for the configuration parameters.
The parameters can also be overridden from the command line:
erl -ApplName Par1 Val1 Par2 Val2 ...
Each term should be an Erlang term. However, in the Unix shell, the term must be enclosed in single quotation marks. For example: '{file, "a.log"}'. |
The configuration file is called
Name.config
where Name
is the name of the
application.
The file has the following syntax:
[{AppName, [{Par, Val}]}].
There is one tuple for each application. The second element in each tuple is a list of configuration parameters and their values.
AppName = atom()
is the name of the application.
Par = atom()
is the name of a configuration
parameter.
Val = term()
is the value of the configuration
parameter.
application(3), systools(3)