logind: add a RequiresMountsFor= dependency from the session scope unit to the home...
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Aug 2018 13:27:49 +0000 (15:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 13 Oct 2018 10:59:29 +0000 (12:59 +0200)
commitd5ac9d060267820aabdf9af509a54a1830b27b7d
treecee01bedea41e8e58c7a00fe76c563f054b0be1a
parent07ee5adb356b9fde500c8a5226f24a314789832b
logind: add a RequiresMountsFor= dependency from the session scope unit to the home directory of the user

This is useful so that during shutdown scope units are always terminated
before the mounts necessary for the home directory.

(Ideally we'd also add a similar dependency from the user@.service
instance to the home directory, but this isn't as easy as that service
is defined statically and not dynamically, and hence not easy to modify
dynamically, in particular when it comes to deps)
src/login/logind-core.c
src/login/logind-dbus.c
src/login/logind-session.c
src/login/logind-user.c
src/login/logind-user.h
src/login/logind.h