managing properties/configurations
A.T.Hofkamp
hat at se-162.se.wtb.tue.nl
Fri May 16 14:01:08 CEST 2008
On 2008-05-16, Venkatraman.S. <venkat83 at gmail.com> wrote:
> The problem being, if i change the config file, then the configobj has
> to reload this file again. I do not want to 'refresh' the config obj
> per transaction but only when the config params change.
If you have trustable time stamps at your file system, you could check the time
stamp before loading.
> I was thinking along the terms of an Interrupt driven program, which
> when getting a custom interrupts reloads the file - any potential
> loopholes/falls that anyone can anticipate?
Many unix deamons use SIGHUP signal to reload configs.
Maybe that would be an option?
Sincerely,
Albert
More information about the Python-list
mailing list