naemon-core icon indicating copy to clipboard operation
naemon-core copied to clipboard

External command RELOAD_CONFIG

Open mboden opened this issue 11 years ago • 2 comments

Hello,

I would like to be able to reload the configuration through the external command file.

Preferably aborted if there is any parse errors in the configuration.

Regards Magnus

mboden avatar Mar 31 '15 19:03 mboden

That's basically what "RESTART_PROGRAM" does.

The problem with 'just' reloading the object configuration currently is that modules often do things based on the object configuration loaded, so in order to reload the configuration, we also have to reinitialize modules. If we're doing that, we're doing the two (by far) most expensive we have to do when starting up, so doing the rest as well and having just one initialization sequence makes the code a lot easier to maintain.

ageric avatar Apr 01 '15 12:04 ageric

Ok. Then is it possible to only do it if the configuration is verified?

mboden avatar Apr 01 '15 15:04 mboden