summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-08-03 10:45:31 +0200
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>2021-06-22 14:26:51 +0200
commit64975b046d5a0877690aa6de9389b8234ee1cfab (patch)
tree97da34b174dc36a94625b7520f9459d492e9cad2
parenta1417c121d19272b1389098648132106a5ffc661 (diff)
downloadsystemd-64975b046d5a0877690aa6de9389b8234ee1cfab.tar.gz
units: assign user-runtime-dir@.service to user-%i.slice
This service won't use much resources, but it's certainly nicer to see it attached th the user's slice along with user@.service, so that everything we run for a specific user is properly bound into one unit. (cherry picked from commit 1193c11a04b3ecc29925904fbeb5d64834bce73e) Related: #1946453
-rw-r--r--units/user-runtime-dir@.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/user-runtime-dir@.service.in b/units/user-runtime-dir@.service.in
index 8c02beda3b..13b3ed52f8 100644
--- a/units/user-runtime-dir@.service.in
+++ b/units/user-runtime-dir@.service.in
@@ -15,3 +15,4 @@ StopWhenUnneeded=yes
ExecStart=@rootlibexecdir@/systemd-user-runtime-dir start %i
ExecStop=@rootlibexecdir@/systemd-user-runtime-dir stop %i
RemainAfterExit=true
+Slice=user-%i.slice