teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0576-units-assign-user-runtime-dir-.service-to-user-i.sli.patch

df98bb
From 64975b046d5a0877690aa6de9389b8234ee1cfab Mon Sep 17 00:00:00 2001
df98bb
From: Lennart Poettering <lennart@poettering.net>
df98bb
Date: Fri, 3 Aug 2018 10:45:31 +0200
df98bb
Subject: [PATCH] units: assign user-runtime-dir@.service to user-%i.slice
df98bb
df98bb
This service won't use much resources, but it's certainly nicer to see
df98bb
it attached th the user's slice along with user@.service, so that
df98bb
everything we run for a specific user is properly bound into one unit.
df98bb
df98bb
(cherry picked from commit 1193c11a04b3ecc29925904fbeb5d64834bce73e)
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 8c02beda3b..13b3ed52f8 100644
df98bb
--- a/units/user-runtime-dir@.service.in
df98bb
+++ b/units/user-runtime-dir@.service.in
df98bb
@@ -15,3 +15,4 @@ StopWhenUnneeded=yes
df98bb
 ExecStart=@rootlibexecdir@/systemd-user-runtime-dir start %i
df98bb
 ExecStop=@rootlibexecdir@/systemd-user-runtime-dir stop %i
df98bb
 RemainAfterExit=true
df98bb
+Slice=user-%i.slice