From 05665a91e700b34e80c217ae718db68dcca66f16 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 8 Nov 2023 18:05:10 +0100 Subject: [PATCH] timer: set AccuracySec to 6h and RandomizedDelaySec to 1h The previous configuration caused the updatedb timer to run potentially in the late morning. However this should be avoided to not affect normal users. Furthermore, the low setting of AccuracySet to 20m caused a low chance of systemd to coalesce the updatedb timer with other timers. Increase the AccuracySec to 6h so that systemd is more likely to be able to coalesce the timer with others in an effort to optimize power consumption. Furthermore, lower RandomizedDelaySec to 1h, to ensure that the plocate updatedb job runs before 07:00 in the morning (and after midnight). --- plocate-updatedb.timer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plocate-updatedb.timer b/plocate-updatedb.timer index 236f45f..1d25abb 100644 --- a/plocate-updatedb.timer +++ b/plocate-updatedb.timer @@ -3,8 +3,8 @@ Description=Update the plocate database daily [Timer] OnCalendar=daily -RandomizedDelaySec=12h -AccuracySec=20min +RandomizedDelaySec=1h +AccuracySec=6h Persistent=true [Install] -- 2.39.2