[erlang-questions] Configuration file pointing to other configuration files

Steve Davis steven.charles.davis@REDACTED
Mon Oct 29 23:53:27 CET 2012


Looks to me that you have a misplaced comma after your config string... 

On Wednesday, October 24, 2012 9:02:56 AM UTC-5, Matthieu Vachon wrote:
>
> Hi All, 
>
> In the config documentation page 
> (http://www.erlang.org/doc/man/config.html), it is noted that since 
> R10B, the syntax of sys.config was extended to allow pointing to other 
> configuration files. 
>
>      [{Application, [{Par, Val}]} | File]. 
>
> So, I was wondering if this mechanism is supposed to work when passing a 
> config file via the command line parameter (i.e. -config): 
>
>      erl -boot boot_file -config sys 
>
> I'm asking the question because in fact, I tried and I tried and I tried 
> without success. My config file looks like this: 
>
>      [ 
>          {mnesia, [ 
>              {dir, "db"} 
>          ]}, 
>
>          "/home/user/project/sys.user.config", 
>      ]. 
>
> But anything I put as the File parameter result in an error. I tried 
> without the .config suffix, with a relative path, at the beginning of 
> the line, at the end. It always saying it's an invalid application name. 
> With this kind of error, I fear it works only in conjunction with a full 
> release and its not meant to work with config file passes as command 
> line arguments. Is it right? 
>
> Here the full error message: 
>
>      could not start kernel pid (application_controller) (invalid config 
> data: invalid application name: "/home/user/project/sys.user.config") 
>
> Regards, 
> Matt 
> _______________________________________________ 
> erlang-questions mailing list 
> erlang-q...@REDACTED <javascript:> 
> http://erlang.org/mailman/listinfo/erlang-questions 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121029/45c4f72c/attachment.htm>


More information about the erlang-questions mailing list