summaryrefslogtreecommitdiff
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
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)
-rw-r--r--daemon/gvfs-daemon.service.in1
-rw-r--r--metadata/gvfs-metadata.service.in1
-rw-r--r--monitor/afc/gvfs-afc-volume-monitor.service.in1
-rw-r--r--monitor/goa/gvfs-goa-volume-monitor.service.in1
-rw-r--r--monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in1
-rw-r--r--monitor/mtp/gvfs-mtp-volume-monitor.service.in1
-rw-r--r--monitor/udisks2/gvfs-udisks2-volume-monitor.service.in1
7 files changed, 7 insertions, 0 deletions
diff --git a/daemon/gvfs-daemon.service.in b/daemon/gvfs-daemon.service.in
index 9f4abb5d..9d381204 100644
--- a/daemon/gvfs-daemon.service.in
+++ b/daemon/gvfs-daemon.service.in
@@ -5,3 +5,4 @@ Description=Virtual filesystem service
ExecStart=@libexecdir@/gvfsd
Type=dbus
BusName=org.gtk.vfs.Daemon
+Slice=session.slice
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
diff --git a/monitor/afc/gvfs-afc-volume-monitor.service.in b/monitor/afc/gvfs-afc-volume-monitor.service.in
index 14fbed81..6b8e7e3a 100644
--- a/monitor/afc/gvfs-afc-volume-monitor.service.in
+++ b/monitor/afc/gvfs-afc-volume-monitor.service.in
@@ -5,3 +5,4 @@ Description=Virtual filesystem service - Apple File Conduit monitor
ExecStart=@libexecdir@/gvfs-afc-volume-monitor
Type=dbus
BusName=org.gtk.vfs.AfcVolumeMonitor
+Slice=session.slice
diff --git a/monitor/goa/gvfs-goa-volume-monitor.service.in b/monitor/goa/gvfs-goa-volume-monitor.service.in
index 803d89f5..f969448f 100644
--- a/monitor/goa/gvfs-goa-volume-monitor.service.in
+++ b/monitor/goa/gvfs-goa-volume-monitor.service.in
@@ -5,3 +5,4 @@ Description=Virtual filesystem service - GNOME Online Accounts monitor
ExecStart=@libexecdir@/gvfs-goa-volume-monitor
Type=dbus
BusName=org.gtk.vfs.GoaVolumeMonitor
+Slice=session.slice
diff --git a/monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in b/monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in
index c74253c0..2fb21be4 100644
--- a/monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in
+++ b/monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in
@@ -5,3 +5,4 @@ Description=Virtual filesystem service - digital camera monitor
ExecStart=@libexecdir@/gvfs-gphoto2-volume-monitor
Type=dbus
BusName=org.gtk.vfs.GPhoto2VolumeMonitor
+Slice=session.slice
diff --git a/monitor/mtp/gvfs-mtp-volume-monitor.service.in b/monitor/mtp/gvfs-mtp-volume-monitor.service.in
index 0ab3a4c3..8d5d7c33 100644
--- a/monitor/mtp/gvfs-mtp-volume-monitor.service.in
+++ b/monitor/mtp/gvfs-mtp-volume-monitor.service.in
@@ -5,3 +5,4 @@ Description=Virtual filesystem service - Media Transfer Protocol monitor
ExecStart=@libexecdir@/gvfs-mtp-volume-monitor
Type=dbus
BusName=org.gtk.vfs.MTPVolumeMonitor
+Slice=session.slice
diff --git a/monitor/udisks2/gvfs-udisks2-volume-monitor.service.in b/monitor/udisks2/gvfs-udisks2-volume-monitor.service.in
index 65a639c5..1fa1040e 100644
--- a/monitor/udisks2/gvfs-udisks2-volume-monitor.service.in
+++ b/monitor/udisks2/gvfs-udisks2-volume-monitor.service.in
@@ -5,3 +5,4 @@ Description=Virtual filesystem service - disk device monitor
ExecStart=@libexecdir@/gvfs-udisks2-volume-monitor
Type=dbus
BusName=org.gtk.vfs.UDisks2VolumeMonitor
+Slice=session.slice