From: David Redondo Date: Wed, 17 Nov 2021 12:24:19 +0000 (+0000) Subject: Put dbus-daemon into session slice X-Git-Tag: dbus-1.13.20~33^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03b4fba4b0d6e7294a5390d6de9de6cf5e50ec25;p=thirdparty%2Fdbus.git Put dbus-daemon into session slice The session slice and the app and background slices are special slices defined by https://systemd.io/DESKTOP_ENVIRONMENTS/, where: session.slice: Contains only processes essential to run the user’s graphical session app.slice: Contains all normal applications that the user is running This allows users or sysadmins to control resource allocation depending on the type of the service. Since v249 (https://github.com/systemd/systemd/commit/23dce98e89616092007005692a4574ab908db5a6) systemd puts user services into the app slice by default so dbus needs to manually state that it belongs in the session slice. --- diff --git a/bus/systemd-user/dbus.service.in b/bus/systemd-user/dbus.service.in index b291b9234..cafcc5c17 100644 --- a/bus/systemd-user/dbus.service.in +++ b/bus/systemd-user/dbus.service.in @@ -8,3 +8,4 @@ Type=notify NotifyAccess=main ExecStart=@EXPANDED_BINDIR@/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only ExecReload=@EXPANDED_BINDIR@/dbus-send --print-reply --session --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig +Slice=session.slice