summaryrefslogtreecommitdiff
path: root/metadata
diff options
context:
space:
mode:
authorHenri Chain <henri.chain@enioka.com>2021-09-22 17:43:55 +0200
committerOndrej Holy <oholy@redhat.com>2021-10-01 14:13:35 +0000
commit8c47e9f15b0245accd7a0a885a6e63fb79eeb09f (patch)
treee177b81d706b98ea9d7fb35c945cb9cac2508376 /metadata
parentb386e6669a0e809045f00983ff9414f338bde7de (diff)
downloadgvfs-8c47e9f15b0245accd7a0a885a6e63fb79eeb09f.tar.gz
Move systemd services to session slice
This puts all gvfs systemd services (which are all dbus-activated through `SystemdService=`) inside of the `session` slice that was introduced in v249 (https://github.com/systemd/systemd/pull/16603) and described in https://systemd.io/DESKTOP_ENVIRONMENTS/ and `systemd.special(7)` This allows sysadmins or OS integrators to assign higher-priority `systemd.resource-control(5)` on `session.slice` and have it propagate down to important session services such as gvfs, so that the gvfs daemons receive sufficient priority for resource allocations to keep the session running smoothly under load. Note that it still works on older systemd (the slice, which is just a cgroup inner directory, is created on demand)
Diffstat (limited to 'metadata')
-rw-r--r--metadata/gvfs-metadata.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/metadata/gvfs-metadata.service.in b/metadata/gvfs-metadata.service.in
index 323728f0..2160b23d 100644
--- a/metadata/gvfs-metadata.service.in
+++ b/metadata/gvfs-metadata.service.in
@@ -5,3 +5,4 @@ Description=Virtual filesystem metadata service
ExecStart=@libexecdir@/gvfsd-metadata
Type=dbus
BusName=org.gtk.vfs.Metadata
+Slice=session.slice