]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Put dbus-daemon into session slice
authorDavid Redondo <kde@david-redondo.de>
Wed, 17 Nov 2021 12:24:19 +0000 (12:24 +0000)
committerSimon McVittie <smcv@collabora.com>
Thu, 18 Nov 2021 11:35:49 +0000 (11:35 +0000)
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.

bus/systemd-user/dbus.service.in

index b291b92348ad60afbca58ebe0c37250228f4cd11..cafcc5c178cf2f03da6651646084c378e967c4e3 100644 (file)
@@ -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