daandemeyer / rpms / systemd

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