summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2014-05-29 01:17:25 +1000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-05-30 09:36:29 -0400
commitd8e40d62ab871a87fde421c4b246bb45bc3cbe2d (patch)
tree1bf63cf4dcf78864547b4f0823544336a1210ae8
parent8d2a6145334257c8a9ceabc9dd52dff06cca818e (diff)
units: use KillMode=mixed for systemd-nspawn@.service
This causes the container to shut down cleanly when the service is stopped.
-rw-r--r--units/systemd-nspawn@.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in
index ff36e901f0..e37362847a 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]