summaryrefslogtreecommitdiffstats
path: root/units/systemd-nspawn@.service.in (follow)
Commit message (Collapse)AuthorAgeFilesLines
* units: make sure systemd-nspawn@.slice instances are actually located in ↵Lennart Poettering2015-05-191-0/+1
| | | | | | machine.slice https://plus.google.com/112206451048767236518/posts/SYAueyXHeEX
* units: order nspawn containers after network.targetLennart Poettering2015-05-111-0/+1
| | | | | | | | This way we know that any bridges and other user-created network devices are in place, and can be properly added to the container. In the long run this should be dropped, and replaced by direct calls inside nspawn that cause the devices to be created when necessary.
* nspawn: make sure we install the device policy if nspawn is run as unit as ↵Lennart Poettering2015-04-281-0/+14
| | | | on the command line
* units: turn on --network-veth by default for systemd-nspawn@.serviceLennart Poettering2015-02-131-1/+1
| | | | | Given the recent improvements in networkd, it's probably the better default now.
* units: rework systemd-nspawn@.service unitLennart Poettering2014-12-291-3/+5
| | | | | | | | | | | - Unescape instance name so that we can take almost anything as instance name. - Introduce "machines.target" which consists of all enabled nspawns and can be used to start/stop them altogether - Look for container directory using -M instead of harcoding the path in /var/lib/container
* nspawn: Add try-{host,guest} journal link modesMartin Pitt2014-11-211-1/+1
| | | | | | | | | | | | | | | | | --link-journal={host,guest} fail if the host does not have persistent journalling enabled and /var/log/journal/ does not exist. Even worse, as there is no stdout/err any more, there is no error message to point that out. Introduce two new modes "try-host" and "try-guest" which don't fail in this case, and instead just silently skip the guest journal setup. Change -j to mean "try-guest" instead of "guest", and fix the wrong --help output for it (it said "host" before). Change systemd-nspawn@.service.in to use "try-guest" so that this unit works with both persistent and non-persistent journals on the host without failing. https://bugs.debian.org/770275
* core: introduce new Delegate=yes/no property controlling creation of cgroup ↵Lennart Poettering2014-11-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | subhierarchies For priviliged units this resource control property ensures that the processes have all controllers systemd manages enabled. For unpriviliged services (those with User= set) this ensures that access rights to the service cgroup is granted to the user in question, to create further subgroups. Note that this only applies to the name=systemd hierarchy though, as access to other controllers is not safe for unpriviliged processes. Delegate=yes should be set for container scopes where a systemd instance inside the container shall manage the hierarchies below its own cgroup and have access to all controllers. Delegate=yes should also be set for user@.service, so that systemd --user can run, controlling its own cgroup tree. This commit changes machined, systemd-nspawn@.service and user@.service to set this boolean, in order to ensure that container management will just work, and the user systemd instance can run fine.
* nspawn: when running in a service unit, use systemd for restartsLennart Poettering2014-07-031-0/+2
| | | | | THis way we can remove cgroup priviliges after setup, but get them back for the next restart, as we need it.
* units: use KillMode=mixed for systemd-nspawn@.serviceJonathan Liu2014-05-301-0/+1
| | | | | This causes the container to shut down cleanly when the service is stopped.
* units: make use of nspawn's --keep-unit switch in systemd-nspawn@.serviceLennart Poettering2014-02-111-1/+1
|
* man,units: fix installation of systemd-nspawn@.service and add exampleZbigniew Jędrzejewski-Szmek2013-11-101-1/+1
|
* nspawn: update unit fileLennart Poettering2013-09-171-1/+0
| | | | | ControlGroup= is obsolete, so let's drop it from the default nspawn unit file.
* units: add an easy-to-use unit template file systemd-nspawn@.service for ↵Lennart Poettering2013-04-301-0/+18
running containers as system services