[erlang-questions] config files

Jon Schneider jon@REDACTED
Wed Oct 2 11:04:06 CEST 2013


I'm trying to influence the choice of TCP port of a node (behind firewall
etc.) so.

I can

application:set_env(kernel, inet_dist_listen_min, 9000),
application:set_env(kernel, inet_dist_listen_max, 9005),

and that does the right thing. But if I write a config file then invoke
erl with the -config option I get

C:\Program Files\erl5.10.2\bin>erl -config jon
{"could not start kernel pid",application_controller,"invalid config data:
invalid application name:  kernel"}

where jon.config says

[kernel, [{inet_dist_listen_min, 9000}, {inet_dist_listen_max, 9005} ]].

Isn't kernel an application name ?

Or what is the nice way to do this ?

Incidentally at http://www.erlang.org/doc/man/config.html under sys.config
a closing square bracket is missing in the first code snippet.

Jon





More information about the erlang-questions mailing list