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