]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind-session.c
logind: rework how we manage the slice and user-runtime-dir@.service unit for each...
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Aug 2018 19:44:45 +0000 (21:44 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 13 Oct 2018 10:59:29 +0000 (12:59 +0200)
commit25a1ab4ed48b72e974f77a68dcbe3521014787bb
tree40b53fc15d179d469e023e16ea293f617918da2e
parentea3a7cf6c34163834893f1f4c7af44c8245776ac
logind: rework how we manage the slice and user-runtime-dir@.service unit for each user

Instead of managing it explicitly, let's simplify things and rely on
regular Wants=/Requires= dependencies to pull in these units from
user@.service and the session scope, and StopWhenUneeded= to stop these
auxiliary units again. This way, they can be pulled in easily by
unrelated units too.

This simplifies things quite a bit: for each session we now only need to
manage the session scope, and for each user the user@.service, the other
units are not something we need to manage anymore.

This patch also makes sure that if user@.service of a user is masked we
will continue to work, and user-runtime-dir@.service will still be
correctly pulled in, as it is now a dependency of the scope unit.

Fixes: #9461
Replaces: #5546
src/login/logind-dbus.c
src/login/logind-session.c
src/login/logind-session.h
src/login/logind-user.c
src/login/logind-user.h
src/login/logind.c
src/login/logind.h