From 34e721714c319bad60e60cbbf6e22f37ccb996b7 Mon Sep 17 00:00:00 2001
From: Piotr Bartosiewicz
Date: Fri, 14 Nov 2014 12:20:04 +0100
Subject: [PATCH] Fix shutdown for systemd init
[Bug/Feature] Systemd does not shutdown on signal
[Cause] N/A
[Solution] N/A
[Verification] Build, install, run tests, run container
Change-Id: Ic4b617c1a35a260803961fb17aba1da51c3af013
---
common/lxc/domain.cpp | 43 ++++++++++++
common/lxc/domain.hpp | 2 +
common/utils/initctl.cpp | 90 +++++++++++++++++++++++++
common/utils/initctl.hpp | 44 ++++++++++++
server/configs/lxc-templates/business.sh | 4 +-
server/configs/lxc-templates/private.sh | 4 +-
tests/unit_tests/lxc/templates/minimal-dbus1.sh | 7 +-
tests/unit_tests/lxc/templates/minimal-dbus2.sh | 7 +-
tests/unit_tests/lxc/templates/minimal-dbus3.sh | 7 +-
tests/unit_tests/lxc/templates/minimal.sh | 7 +-
10 files changed, 209 insertions(+), 6 deletions(-)
create mode 100644 common/utils/initctl.cpp
create mode 100644 common/utils/initctl.hpp
diff --git a/common/lxc/domain.cpp b/common/lxc/domain.cpp
index 0959959..57228c0 100644
--- a/common/lxc/domain.cpp
+++ b/common/lxc/domain.cpp
@@ -30,6 +30,9 @@
#include
#include
+#include
+#include
+
#include