[gvfs] Move systemd services to session slice
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] Move systemd services to session slice
- Date: Fri, 1 Oct 2021 14:14:52 +0000 (UTC)
commit 8c47e9f15b0245accd7a0a885a6e63fb79eeb09f
Author: Henri Chain <henri chain enioka com>
Date: Wed Sep 22 17:43:55 2021 +0200
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)
daemon/gvfs-daemon.service.in | 1 +
metadata/gvfs-metadata.service.in | 1 +
monitor/afc/gvfs-afc-volume-monitor.service.in | 1 +
monitor/goa/gvfs-goa-volume-monitor.service.in | 1 +
monitor/gphoto2/gvfs-gphoto2-volume-monitor.service.in | 1 +
monitor/mtp/gvfs-mtp-volume-monitor.service.in | 1 +
monitor/udisks2/gvfs-udisks2-volume-monitor.service.in | 1 +
7 files changed, 7 insertions(+)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]