From: Jonathan Liu Date: Wed, 28 May 2014 15:17:25 +0000 (+1000) Subject: units: use KillMode=mixed for systemd-nspawn@.service X-Git-Tag: v214~125 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=d8e40d62ab871a87fde421c4b246bb45bc3cbe2d;p=elogind.git units: use KillMode=mixed for systemd-nspawn@.service This causes the container to shut down cleanly when the service is stopped. --- diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in index ff36e901f..e37362847 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]