A configuration file contains values for configuration
parameters for the applications in the system. The erl
command
line argument -config Name
tells the system to use data in
the system configuration file Name.config
.
Configuration parameter values in the configuration file will
override the values in the application resource files (see
app(4)
).
The values in the configuration file can be overridden by command line
flags (see erl(1)
).
The value of a configuration parameter is retrieved by calling
application:get_env/1,2
.
The configuration file should be called Name.config
where
Name
is an arbitrary name.
The .config
file contains one single Erlang term. The file has
the following syntax:
[{Application1, [{Par11, Val11}, ..]}, .. {ApplicationN, [{ParN1, ValN1}, ..]}].
Application = atom()
is the name of the application.Par = atom()
is the name of a configuration parameter.Val = term()
is the value of a configuration parameter.
application(3), systools(3)