| 623 | |
| 624 | |
| 625 | Future<Nothing> LinuxLauncherProcess::_destroy(const ContainerID& containerId) |
| 626 | { |
| 627 | if (systemdHierarchy.isNone()) { |
| 628 | return Nothing(); |
| 629 | } |
| 630 | |
| 631 | const string cgroup = |
| 632 | containerizer::paths::getCgroupPath(flags.cgroups_root, containerId); |
| 633 | |
| 634 | if (!cgroups::exists(systemdHierarchy.get(), cgroup)) { |
| 635 | return Nothing(); |
| 636 | } |
| 637 | |
| 638 | LOG(INFO) << "Destroying cgroup '" |
| 639 | << path::join(systemdHierarchy.get(), cgroup) << "'"; |
| 640 | |
| 641 | return cgroups::destroy( |
| 642 | systemdHierarchy.get(), |
| 643 | cgroup, |
| 644 | flags.cgroups_destroy_timeout); |
| 645 | } |
| 646 | |
| 647 | |
| 648 | Future<ContainerStatus> LinuxLauncherProcess::status( |