Page MenuHome GnuPG

0001-Place-dirmngr.service-and-gpg-agent.service-in-sessi.patch

Authored By
bluca
Nov 1 2021, 1:19 AM
Size
1 KB
Subscribers
None

0001-Place-dirmngr.service-and-gpg-agent.service-in-sessi.patch

From 6b312dda869684cde584e0469f80d6a6f9ea96f4 Mon Sep 17 00:00:00 2001
From: Luca Boccassi <bluca@debian.org>
Date: Mon, 1 Nov 2021 00:16:26 +0000
Subject: [PATCH] Place dirmngr.service and gpg-agent.service in session.slice
From: https://www.freedesktop.org/software/systemd/man/systemd.special.html#session.slice
All essential services and applications required for the session
should use this slice. These are services that either cannot be
restarted easily or where latency issues may affect the
interactivity of the system and applications. This includes the
display server, screen readers and other services such as DBus or
XDG portals. Such services should be configured to be part of this
slice by adding Slice=session.slice to their unit files.
---
doc/examples/systemd-user/dirmngr.service | 1 +
doc/examples/systemd-user/gpg-agent.service | 1 +
2 files changed, 2 insertions(+)
diff --git a/doc/examples/systemd-user/dirmngr.service b/doc/examples/systemd-user/dirmngr.service
index 3c060cde5..d650f30cd 100644
--- a/doc/examples/systemd-user/dirmngr.service
+++ b/doc/examples/systemd-user/dirmngr.service
@@ -6,3 +6,4 @@ Requires=dirmngr.socket
[Service]
ExecStart=/usr/bin/dirmngr --supervised
ExecReload=/usr/bin/gpgconf --reload dirmngr
+Slice=session.slice
diff --git a/doc/examples/systemd-user/gpg-agent.service b/doc/examples/systemd-user/gpg-agent.service
index a050fccdc..272957b3f 100644
--- a/doc/examples/systemd-user/gpg-agent.service
+++ b/doc/examples/systemd-user/gpg-agent.service
@@ -6,3 +6,4 @@ Requires=gpg-agent.socket
[Service]
ExecStart=/usr/bin/gpg-agent --supervised
ExecReload=/usr/bin/gpgconf --reload gpg-agent
+Slice=session.slice
--
2.33.0

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0e/b2/4e4e4e84e4616fe87ebf57e21bc6

Event Timeline