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=5bac5235934fabe5a3e6a9d47f4812f81034c427;hp=574d0deafa204af47f15b335ea0e12e5a653c79b;hpb=ce38dbc84b40148026801dd29fd0ad1f1b25d3fb;p=elogind.git diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in index 574d0deaf..02d663dd2 100644 --- a/units/systemd-nspawn@.service.in +++ b/units/systemd-nspawn@.service.in @@ -6,15 +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 --quiet --keep-unit --boot --link-journal=guest --directory=/var/lib/container/%i +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] -WantedBy=multi-user.target +WantedBy=machines.target