ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
b677e7
From 1fa9a6bf51a1a1d0fa2ccc23283739d16e9179b4 Mon Sep 17 00:00:00 2001
b677e7
From: Lennart Poettering <lennart@poettering.net>
b677e7
Date: Fri, 3 Aug 2018 10:42:09 +0200
b677e7
Subject: [PATCH] units: order user-runtime-dir@.service after
b677e7
 systemd-user-sessions.service
b677e7
b677e7
We use systemd-user-sessions.service as barrier when to allow login
b677e7
sessions. With this patch user@.service is ordered after that too, so
b677e7
that any login related code (which user-runtime-dir@.service is) is
b677e7
guaranteed to run after the barrier, and never before.
b677e7
b677e7
(cherry picked from commit eb748aef4fbfd03b64938aa471bb8ceda1bc89a8)
b677e7
b677e7
Related: #1946453
b677e7
---
b677e7
 units/user-runtime-dir@.service.in | 1 +
b677e7
 1 file changed, 1 insertion(+)
b677e7
b677e7
diff --git a/units/user-runtime-dir@.service.in b/units/user-runtime-dir@.service.in
b677e7
index 13b3ed52f8..31354c9bf2 100644
b677e7
--- a/units/user-runtime-dir@.service.in
b677e7
+++ b/units/user-runtime-dir@.service.in
b677e7
@@ -9,6 +9,7 @@
b677e7
 
b677e7
 [Unit]
b677e7
 Description=/run/user/%i mount wrapper
b677e7
+After=systemd-user-sessions.service
b677e7
 StopWhenUnneeded=yes
b677e7
 
b677e7
 [Service]