mirror of https://github.com/Icinga/icinga2.git
parent
ecce27f9da
commit
4d6088bee1
|
@ -84,12 +84,15 @@ void CheckerComponent::Start(void)
|
||||||
|
|
||||||
void CheckerComponent::Stop(void)
|
void CheckerComponent::Stop(void)
|
||||||
{
|
{
|
||||||
|
Log(LogInformation, "checker", "Checker stopped.");
|
||||||
|
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_Mutex);
|
boost::mutex::scoped_lock lock(m_Mutex);
|
||||||
m_Stopped = true;
|
m_Stopped = true;
|
||||||
m_CV.notify_all();
|
m_CV.notify_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_ResultTimer->Stop();
|
||||||
m_Thread.join();
|
m_Thread.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ stop() {
|
||||||
|
|
||||||
printf '.'
|
printf '.'
|
||||||
|
|
||||||
sleep 1
|
sleep 3
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -174,10 +174,10 @@ void Application::RunEventLoop(void) const
|
||||||
Utility::Sleep(0.5);
|
Utility::Sleep(0.5);
|
||||||
|
|
||||||
Log(LogInformation, "base", "Shutting down Icinga...");
|
Log(LogInformation, "base", "Shutting down Icinga...");
|
||||||
|
DynamicObject::StopObjects();
|
||||||
Application::GetInstance()->OnShutdown();
|
Application::GetInstance()->OnShutdown();
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
DynamicObject::StopObjects();
|
|
||||||
GetTP().Stop();
|
GetTP().Stop();
|
||||||
m_ShuttingDown = false;
|
m_ShuttingDown = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue