How to configure processes, (and applications)

Vladimir Sekissov <>
Mon Feb 21 19:36:04 CET 2005


anders.nygren> I am not sure I completely understand what You are doing 
anders.nygren> but please send some code as this looks interesting.
anders.nygren> 
anders.nygren> Does Your method also support configuration changes 
anders.nygren> while the system is running?

I don't know how this process could be generalized but in any way it
is ordinary OTP application, follow OTP rules and you can customize
its behaviour accordong to your needs (for my current needs restarting
the whole subsystem is enough).

The code is in attachement. As example of usage you can look at

tacacs/src/tac_app.erl
tacacs/src/tac_conf.erl

Example config file: tacacs/templates/tacacs.conf.stl

You must make at top level to compile everything. You need GNU make >=
3.80 for this.

If you want to use application environment instead of text file you
can use {list, Config} as parameter instead of {file, Name}.

To change backend to application environment from ets, modify the
following property_server callbacks:

bootstrap/2
new_config/1
delete_config/1
store_entry/1
handle_op/2
config_to_list/1

Best Regargs,
Vladimir Sekissov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ws.tar.gz
Type: application/octet-stream
Size: 288491 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050221/82c8b066/attachment.obj>


More information about the erlang-questions mailing list