]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: make system service manager create init.scope subcgroup for user service manager
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Apr 2023 08:11:46 +0000 (10:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 27 Apr 2023 10:18:32 +0000 (12:18 +0200)
This one is basically for free, since the service manager is already
prepared for being invoked in init.scope. Hence let's start it in the
right cgroup right-away.

units/user@.service.in

index 41ed55cb1ae9793b8b331a1569d6fdeec307b64e..86ab4ffcc6dfa9be6727c3ecbfae55e29054b9cc 100644 (file)
@@ -22,6 +22,7 @@ ExecStart={{ROOTLIBEXECDIR}}/systemd --user
 Slice=user-%i.slice
 KillMode=mixed
 Delegate=pids memory cpu
+DelegateSubgroup=init.scope
 TasksMax=infinity
 TimeoutStopSec={{ DEFAULT_USER_TIMEOUT_SEC*4//3 }}s
 KeyringMode=inherit