teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0577-units-order-user-runtime-dir-.service-after-systemd-.patch

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