]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
logind: add infrastructure to keep track of machines, and move to slices
authorLennart Poettering <lennart@poettering.net>
Thu, 20 Jun 2013 01:45:08 +0000 (03:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 Jun 2013 01:49:59 +0000 (03:49 +0200)
commit9444b1f20e311f073864d81e913bd4f32fe95cfd
tree7b4752c690729df0acec75c9eb2382026bbf6899
parent77f40f165cc60a1d6b8a3503e4b7e46814d5935e
logind: add infrastructure to keep track of machines, and move to slices

- This changes all logind cgroup objects to use slice objects rather
  than fixed croup locations.

- logind can now collect minimal information about running
  VMs/containers. As fixed cgroup locations can no longer be used we
  need an entity that keeps track of machine cgroups in whatever slice
  they might be located. Since logind already keeps track of users,
  sessions and seats this is a trivial addition.

- nspawn will now register with logind and pass various bits of metadata
  along. A new option "--slice=" has been added to place the container
  in a specific slice.

- loginctl gained commands to list, introspect and terminate machines.

- user.slice and machine.slice will now be pulled in by logind.service,
  since only logind.service requires this slice.
41 files changed:
Makefile.am
TODO
catalog/systemd.catalog
src/cgls/cgls.c
src/core/cgroup.c
src/core/dbus-manager.c
src/core/dbus-unit.c
src/core/manager.h
src/core/service.c
src/core/socket.c
src/core/special.h
src/core/unit-printf.c
src/core/unit.c
src/core/unit.h
src/login/loginctl.c
src/login/logind-dbus.c
src/login/logind-machine-dbus.c [new file with mode: 0644]
src/login/logind-machine.c [new file with mode: 0644]
src/login/logind-machine.h [new file with mode: 0644]
src/login/logind-seat-dbus.c
src/login/logind-session-dbus.c
src/login/logind-session.c
src/login/logind-session.h
src/login/logind-user-dbus.c
src/login/logind-user.c
src/login/logind-user.h
src/login/logind.c
src/login/logind.h
src/login/sd-login.c
src/login/user-sessions.c
src/nspawn/nspawn.c
src/shared/cgroup-util.c
src/shared/cgroup-util.h
src/shared/unit-name.c
src/systemd/sd-bus.h
src/systemd/sd-messages.h
src/test/test-cgroup-util.c
units/machine.slice
units/system.slice
units/systemd-logind.service.in
units/user.slice