summaryrefslogtreecommitdiff
path: root/core/systemd/0001-units-use-KillMode-mixed-for-systemd-nspawn-.service.patch
diff options
context:
space:
mode:
Diffstat (limited to 'core/systemd/0001-units-use-KillMode-mixed-for-systemd-nspawn-.service.patch')
-rw-r--r--core/systemd/0001-units-use-KillMode-mixed-for-systemd-nspawn-.service.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/core/systemd/0001-units-use-KillMode-mixed-for-systemd-nspawn-.service.patch b/core/systemd/0001-units-use-KillMode-mixed-for-systemd-nspawn-.service.patch
new file mode 100644
index 000000000..f5c55e249
--- /dev/null
+++ b/core/systemd/0001-units-use-KillMode-mixed-for-systemd-nspawn-.service.patch
@@ -0,0 +1,26 @@
+From d8e40d62ab871a87fde421c4b246bb45bc3cbe2d Mon Sep 17 00:00:00 2001
+From: Jonathan Liu <net147@gmail.com>
+Date: Thu, 29 May 2014 01:17:25 +1000
+Subject: [PATCH] units: use KillMode=mixed for systemd-nspawn@.service
+
+This causes the container to shut down cleanly when the service is
+stopped.
+---
+ units/systemd-nspawn@.service.in | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in
+index ff36e90..e373628 100644
+--- a/units/systemd-nspawn@.service.in
++++ b/units/systemd-nspawn@.service.in
+@@ -11,6 +11,7 @@ Documentation=man:systemd-nspawn(1)
+
+ [Service]
+ ExecStart=@bindir@/systemd-nspawn --quiet --keep-unit --boot --link-journal=guest --directory=/var/lib/container/%i
++KillMode=mixed
+ Type=notify
+
+ [Install]
+--
+1.9.3
+