X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Fsystemd-nspawn%40.service.in;h=02d663dd24526e0bf1a2ac2772e23d179a9501f1;hb=934277fe6a26ff2a4da37059c70d84ab6a700781;hp=c0d5886f8855c4e5557cab8e32c35c2e3e9c5ea0;hpb=05947befcec9afb83b9ce48d613ff372c63e2ed1;p=elogind.git diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in index c0d5886f8..02d663dd2 100644 --- a/units/systemd-nspawn@.service.in +++ b/units/systemd-nspawn@.service.in @@ -6,13 +6,18 @@ # (at your option) any later version. [Unit] -Description=Container %i +Description=Container %I Documentation=man:systemd-nspawn(1) +PartOf=machines.target +Before=machines.target [Service] -ExecStart=@bindir@/systemd-nspawn -bjD /var/lib/container/%i -ControlGroup=%R/machine/%i.nspawn cpu:/ +ExecStart=@bindir@/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --machine=%I +KillMode=mixed Type=notify +RestartForceExitStatus=133 +SuccessExitStatus=133 +Delegate=yes [Install] -Also=multi-user.target +WantedBy=machines.target