diff --git a/lib/icinga/host.cpp b/lib/icinga/host.cpp index 345aa3ec4..59c69f765 100644 --- a/lib/icinga/host.cpp +++ b/lib/icinga/host.cpp @@ -39,9 +39,9 @@ using namespace icinga; REGISTER_TYPE(Host); -void Host::Start(void) +void Host::OnConfigLoaded(void) { - DynamicObject::Start(); + DynamicObject::OnConfigLoaded(); ASSERT(!OwnsLock()); @@ -57,10 +57,7 @@ void Host::Start(void) hg->AddMember(GetSelf()); } } -} -void Host::OnConfigLoaded(void) -{ UpdateSlaveServices(); } diff --git a/lib/icinga/host.h b/lib/icinga/host.h index 904a5edbe..9da3adb51 100644 --- a/lib/icinga/host.h +++ b/lib/icinga/host.h @@ -102,7 +102,6 @@ public: virtual bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, String *result) const; protected: - virtual void Start(void); virtual void Stop(void); virtual void OnConfigLoaded(void);