]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: assign user-runtime-dir@.service to user-%i.slice 9791/head
authorLennart Poettering <lennart@poettering.net>
Fri, 3 Aug 2018 08:45:31 +0000 (10:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 3 Aug 2018 08:45:31 +0000 (10:45 +0200)
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.

units/user-runtime-dir@.service.in

index a187bb28397896d09f7331d651aff7fa5092a26f..434413525eb5ab47e11ccdd5c5551ab1f43480a5 100644 (file)
@@ -18,3 +18,4 @@ ExecStart=@rootlibexecdir@/systemd-user-runtime-dir start %i
 ExecStop=@rootlibexecdir@/systemd-user-runtime-dir stop %i
 Type=oneshot
 RemainAfterExit=true
+Slice=user-%i.slice