Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
State file not updated on reload #6689
Save current state to /var/lib/icinga2/icinga2.state after running "systemctl reload icinga2"
State file will be persisted every 5 minutes, on restart and on shutdown - but not on reload.
This was the reload behaviour in Icinga 2.8.4 (from debug log):
This is the current reload behaviour in Icinga 2.10.1:
There is a new method "void Application::SigUsr2Handler(int)" in base/application.cpp that does not save the state file. If I add the shutdown code from the main loop, the state file is saved again:
Steps to Reproduce (for bugs)
Icinga2 2.10.0 on Oracle Linux 7.5
Further steps to reproduce:
Terminal 1: State file
Terminal 2: Modify attribute and reload
Terminal 3: Watch modified attribute
Fix in place