X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Fsystemd-nspawn%40.service.in;h=3e26b53fd68f933e50dbc5001725e94d37b61f71;hb=df4573e85190759e39b417d4d4a8c73eda6a05e5;hp=c0d5886f8855c4e5557cab8e32c35c2e3e9c5ea0;hpb=05947befcec9afb83b9ce48d613ff372c63e2ed1;p=elogind.git diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in index c0d5886f8..3e26b53fd 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 --network-veth --machine=%I +KillMode=mixed Type=notify +RestartForceExitStatus=133 +SuccessExitStatus=133 +Delegate=yes [Install] -Also=multi-user.target +WantedBy=machines.target