units: use KillMode=mixed for systemd-nspawn@.service

This causes the container to shut down cleanly when the service is
stopped.

(cherry picked from commit d8e40d62ab)
This commit is contained in:
Jonathan Liu
2014-06-16 18:31:10 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 99139fe295
commit 62d2980f8e
+1
View File
@@ -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]