Alignak-monitoring / alignak

Monitoring tool, highly flexible and new standard oriented
https://alignak-monitoring.github.io
GNU Affero General Public License v3.0
86 stars 19 forks source link

Implement true Alignak reload #104

Closed aviau closed 9 years ago

aviau commented 9 years ago

I would like for Alignak-arbiter to reload (config) without changing PID.

ddurieux commented 9 years ago

What do you mean? reload is different than restart, so yes reload = no changing PID

Seb-Solon commented 9 years ago

Yes but actually the arbiter reload is usually done by init script . And the init script only implements restart. So yeah pid change, tehre is no signal handler to reload

jremond commented 9 years ago

alignak should handle SIGHUP as a reload signal Would "alignak/daemon.py" manage_signal function be a good place to add it ? I found a manage_signal function in schedulerdaemon.py too so should it be duplicated to arbiterdaemon.py instead ?

Seb-Solon commented 9 years ago

Yeah that basically where it hould be place @jremond . Instead of dumpy memeory or whatever you could set a flag like "need reload" and here we go.

jremond commented 9 years ago

Let's try ! https://github.com/Alignak-monitoring/alignak/pull/133