teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

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

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