]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-nspawn@.service.in
Merge pull request #1321 from evverx/cgtop-recurisive-option
[thirdparty/systemd.git] / units / systemd-nspawn@.service.in
CommitLineData
05947bef
LP
1# This file is part of systemd.
2#
3# systemd is free software; you can redistribute it and/or modify it
4# under the terms of the GNU Lesser General Public License as published by
5# the Free Software Foundation; either version 2.1 of the License, or
6# (at your option) any later version.
7
8[Unit]
6a140df0 9Description=Container %I
05947bef 10Documentation=man:systemd-nspawn(1)
6a140df0
LP
11PartOf=machines.target
12Before=machines.target
d3650f0c 13After=network.target
05947bef
LP
14
15[Service]
08acb521 16ExecStart=@bindir@/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth --settings=override --machine=%I
d8e40d62 17KillMode=mixed
05947bef 18Type=notify
ce38dbc8
LP
19RestartForceExitStatus=133
20SuccessExitStatus=133
45d383a3 21Slice=machine.slice
a931ad47 22Delegate=yes
05947bef 23
773ce3d8
LP
24# Enforce a strict device policy, similar to the one nspawn configures
25# when it allocates its own scope unit. Make sure to keep these
26# policies in sync if you change them!
27DevicePolicy=strict
28DeviceAllow=/dev/null rwm
29DeviceAllow=/dev/zero rwm
30DeviceAllow=/dev/full rwm
31DeviceAllow=/dev/random rwm
32DeviceAllow=/dev/urandom rwm
33DeviceAllow=/dev/tty rwm
34DeviceAllow=/dev/net/tun rwm
35DeviceAllow=/dev/pts/ptmx rw
36DeviceAllow=char-pts rw
37
05947bef 38[Install]
6a140df0 39WantedBy=machines.target