machined: split out machine registration stuff from logind

System Internals / systemd - Lennart Poettering [poettering.net] - 1 July 2013 20:47 UTC

Embedded folks don't need the machine registration stuff, hence it's nice to make this optional. Also, I'd expect that machinectl will grow additional commands quickly, for example to join existing containers and suchlike, hence it's better keeping that separate from loginctl.

1ee306e machined: split out machine registration stuff from logind
.gitignore | 2 +
Makefile.am | 70 ++-
configure.ac | 10 +
src/login/loginctl.c | 309 +---------
src/login/logind-dbus.c | 378 ------------
src/login/logind-machine-dbus.c | 360 -----------
src/login/logind-machine.c | 403 -------------
src/login/logind-machine.h | 99 ----
src/login/logind-user.c | 12 +-
src/login/logind.c | 117 +---
src/login/logind.h | 7 -
src/machine/Makefile | 1 +
src/machine/machine-dbus.c | 359 +++++++++++
src/machine/machine.c | 411 +++++++++++++
src/machine/machine.h | 109 ++++
src/machine/machinectl.c | 764 ++++++++++++++++++++++++
src/machine/machined-dbus.c | 824 ++++++++++++++++++++++++++
src/machine/machined.c | 408 +++++++++++++
src/machine/machined.h | 73 +++
src/machine/org.freedesktop.machine1.conf | 46 ++
src/machine/org.freedesktop.machine1.service | 12 +
src/nspawn/nspawn.c | 6 +-
tmpfiles.d/systemd.conf | 1 +
units/.gitignore | 1 +
units/systemd-logind.service.in | 4 +-
units/systemd-machined.service.in | 19 +
26 files changed, 3122 insertions(+), 1683 deletions(-)

Upstream: github.com


  • Share