MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Stop

Method Stop

lib/icinga/host.cpp:66–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void Host::Stop(bool runtimeRemoved)
67{
68 ObjectImpl<Host>::Stop(runtimeRemoved);
69
70 Array::Ptr groups = GetGroups();
71
72 if (groups) {
73 ObjectLock olock(groups);
74
75 for (String name : groups) {
76 HostGroup::Ptr hg = HostGroup::GetByName(name);
77
78 if (hg)
79 hg->ResolveGroupMembership(this, false);
80 }
81 }
82
83 // TODO: unregister slave services/notifications?
84}
85
86std::vector<Service::Ptr> Host::GetServices() const
87{

Callers 1

OnShutdownMethod · 0.45

Calls 1

Tested by

no test coverage detected