From 76fc7a75cef05974bc4752d4d3cb06e96323ca19 Mon Sep 17 00:00:00 2001 From: morgaesis Date: Fri, 27 Oct 2023 00:06:56 +0000 Subject: [PATCH 1/2] Make automatic updates nicer --- src/daemon/rpm-ostreed-automatic.service | 1 + 1 file changed, 1 insertion(+) diff --git a/src/daemon/rpm-ostreed-automatic.service b/src/daemon/rpm-ostreed-automatic.service index e53e89c228..6e93d2d3a8 100644 --- a/src/daemon/rpm-ostreed-automatic.service +++ b/src/daemon/rpm-ostreed-automatic.service @@ -5,4 +5,5 @@ ConditionPathExists=/run/ostree-booted [Service] Type=simple +Nice=10 ExecStart=rpm-ostree upgrade --quiet --trigger-automatic-update-policy From 3c508b0ccf9177e2c8323c65de987cf937cc0d91 Mon Sep 17 00:00:00 2001 From: morgaesis Date: Fri, 27 Oct 2023 01:07:06 +0000 Subject: [PATCH 2/2] Move Niceness to daemon --- src/daemon/rpm-ostreed-automatic.service | 1 - src/daemon/rpm-ostreed.service | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/rpm-ostreed-automatic.service b/src/daemon/rpm-ostreed-automatic.service index 6e93d2d3a8..e53e89c228 100644 --- a/src/daemon/rpm-ostreed-automatic.service +++ b/src/daemon/rpm-ostreed-automatic.service @@ -5,5 +5,4 @@ ConditionPathExists=/run/ostree-booted [Service] Type=simple -Nice=10 ExecStart=rpm-ostree upgrade --quiet --trigger-automatic-update-policy diff --git a/src/daemon/rpm-ostreed.service b/src/daemon/rpm-ostreed.service index 406ead652f..1c7fe09934 100644 --- a/src/daemon/rpm-ostreed.service +++ b/src/daemon/rpm-ostreed.service @@ -7,6 +7,7 @@ RequiresMountsFor=/boot [Service] # See similar code in rpm-ostree-countme.service User=rpm-ostree +Nice=10 DynamicUser=yes # As of right now, our primary API is DBus. But see also https://github.com/coreos/rpm-ostree/issues/3850 Type=dbus