[erlang-questions] Changing environment variables for an application started from boot script

Sean Hinde <>
Sun Aug 12 16:38:26 CEST 2007


Hi Kiril,

You are right, the variables in the .app file are basically intended  
for startup.

It is possible to change them (with application:set_env/3), but see  
the warnings in the doc.

One alternative and quite nice way to deal with the config issue is  
to make an mnesia table for all the config items, and use  
mnesia:subscribe to notify users of the config about changes.

Sean

On 12 Aug 2007, at 15:20, Kirill Zaborski wrote:

> Hello everyone!
> I've created an application and a boot script to start it. But now  
> it looks like I can not use .app-file to change the variables I  
> need to change. Why is it so?
> At the moment it looks like I need to rebuilt the boot script every  
> time anything is changed. And what if need the system to run 24x7?
> Or maybe I miss some other way around?
>
> Best regards,
> Kirill.
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list