mirror of https://github.com/Icinga/icinga2.git
Merge pull request #6691 from Icinga/bugfix/reload-signal-handler-dump-state-file
Add missing shutdown/program state dumps for SIGUSR2 reload handler
This commit is contained in:
commit
c0398ed9ba
|
@ -751,6 +751,13 @@ void Application::SigUsr2Handler(int)
|
|||
|
||||
instance->ClosePidFile(false);
|
||||
|
||||
/* Ensure to dump the program state on reload. */
|
||||
ConfigObject::StopObjects();
|
||||
instance->OnShutdown();
|
||||
|
||||
Log(LogInformation, "Application")
|
||||
<< "Reload done, parent process shutting down. Child process with PID '" << m_ReloadProcess << "' is taking over.";
|
||||
|
||||
Exit(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue