]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: order user-runtime-dir@.service after systemd-user-sessions.service
authorLennart Poettering <lennart@poettering.net>
Fri, 3 Aug 2018 08:42:09 +0000 (10:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 3 Aug 2018 08:42:09 +0000 (10:42 +0200)
We use systemd-user-sessions.service as barrier when to allow login
sessions. With this patch user@.service is ordered after that too, so
that any login related code (which user-runtime-dir@.service is) is
guaranteed to run after the barrier, and never before.

units/user-runtime-dir@.service.in

index 7bb41d75e5b36654f25294b63c0fbbf14eb9a3b8..a187bb28397896d09f7331d651aff7fa5092a26f 100644 (file)
@@ -10,6 +10,7 @@
 [Unit]
 Description=/run/user/%i mount wrapper
 Documentation=man:user@.service(5)
+After=systemd-user-sessions.service
 StopWhenUnneeded=yes
 
 [Service]