From: Lennart Poettering Date: Mon, 24 Apr 2023 08:11:46 +0000 (+0200) Subject: units: make system service manager create init.scope subcgroup for user service manager X-Git-Tag: v254-rc1~610^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3975e3f8ae630586eee816b88e3adde89686d2b1;p=thirdparty%2Fsystemd.git units: make system service manager create init.scope subcgroup for user service manager 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. --- diff --git a/units/user@.service.in b/units/user@.service.in index 41ed55cb1ae..86ab4ffcc6d 100644 --- a/units/user@.service.in +++ b/units/user@.service.in @@ -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