mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
Rotate replay log on shutdown, not on startup
(cherry picked from commit f44e847717d272833dfc185ef2117390ef5a9f89)
This commit is contained in:
parent
511772e08a
commit
206fb222c0
@ -246,7 +246,6 @@ void ApiListener::Start(bool runtimeCreated)
|
|||||||
|
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_LogLock);
|
boost::mutex::scoped_lock lock(m_LogLock);
|
||||||
RotateLogFile();
|
|
||||||
OpenLogFile();
|
OpenLogFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -293,6 +292,7 @@ void ApiListener::Stop(bool runtimeDeleted)
|
|||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_LogLock);
|
boost::mutex::scoped_lock lock(m_LogLock);
|
||||||
CloseLogFile();
|
CloseLogFile();
|
||||||
|
RotateLogFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoveStatusFile();
|
RemoveStatusFile();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user