mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-19 11:44:28 +02:00
livestatus: remove stop function again
This commit is contained in:
parent
a5d3b74da6
commit
2a3b41f948
@ -51,20 +51,8 @@ void LivestatusComponent::Start(void)
|
|||||||
|
|
||||||
m_Listener = socket;
|
m_Listener = socket;
|
||||||
|
|
||||||
m_Thread = boost::thread(boost::bind(&LivestatusComponent::ServerThreadProc, this, socket));
|
boost::thread thread(boost::bind(&LivestatusComponent::ServerThreadProc, this, socket));
|
||||||
m_Thread.detach();
|
thread.detach();
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Stops the component.
|
|
||||||
*/
|
|
||||||
void LivestatusComponent::Stop(void)
|
|
||||||
{
|
|
||||||
m_Listener->Close();
|
|
||||||
|
|
||||||
Log(LogInformation, "livestatus", "Socket closed.");
|
|
||||||
|
|
||||||
m_Thread.join();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String LivestatusComponent::GetSocketPath(void) const
|
String LivestatusComponent::GetSocketPath(void) const
|
||||||
|
@ -39,13 +39,10 @@ public:
|
|||||||
LivestatusComponent(const Dictionary::Ptr& serializedUpdate);
|
LivestatusComponent(const Dictionary::Ptr& serializedUpdate);
|
||||||
|
|
||||||
virtual void Start(void);
|
virtual void Start(void);
|
||||||
virtual void Stop(void);
|
|
||||||
|
|
||||||
String GetSocketPath(void) const;
|
String GetSocketPath(void) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
boost::thread m_Thread;
|
|
||||||
|
|
||||||
Attribute<String> m_SocketPath;
|
Attribute<String> m_SocketPath;
|
||||||
|
|
||||||
Socket::Ptr m_Listener;
|
Socket::Ptr m_Listener;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user