mirror of https://github.com/Icinga/icinga2.git
Add missing shutdown/program state dumps for SIGUSR2 reload handler
Credits to @west0rmann finding the issue and providing the initial fix. fixes #6689 fixes #6592
This commit is contained in:
parent
3cccc9d9b8
commit
af6c8a1f50
|
@ -751,6 +751,13 @@ void Application::SigUsr2Handler(int)
|
||||||
|
|
||||||
instance->ClosePidFile(false);
|
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);
|
Exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue