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

This causes the container to shut down cleanly when the service is
stopped.
This commit is contained in:
Jonathan Liu 2014-05-29 01:17:25 +10:00 committed by Zbigniew Jędrzejewski-Szmek
parent 8d2a614533
commit d8e40d62ab
1 changed files with 1 additions and 0 deletions

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]