| 64 | } |
| 65 | |
| 66 | void 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 | |
| 86 | std::vector<Service::Ptr> Host::GetServices() const |
| 87 | { |
no test coverage detected