mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
Rotate replay log on shutdown, not on startup
This commit is contained in:
parent
5e3df67ab3
commit
f44e847717
@ -229,7 +229,6 @@ void ApiListener::Start(bool runtimeCreated)
|
|||||||
|
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_LogLock);
|
boost::mutex::scoped_lock lock(m_LogLock);
|
||||||
RotateLogFile();
|
|
||||||
OpenLogFile();
|
OpenLogFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -280,6 +279,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