X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Fsystemd-nspawn%40.service.in;h=02d663dd24526e0bf1a2ac2772e23d179a9501f1;hb=d831deb512ab1d11aab156f69620db506c554170;hp=8e00736498a2485cdce6ad338def44c82f28d610;hpb=9cb74bcb23dde8488459ca233bf9caee642b8402;p=elogind.git diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in index 8e0073649..02d663dd2 100644 --- a/units/systemd-nspawn@.service.in +++ b/units/systemd-nspawn@.service.in @@ -6,12 +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 +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