Behave more like the old service, with the "--timer" option.

This commit is contained in:
Gordon Messmer 2024-10-22 20:39:01 -07:00 committed by Neal Gompa (ニール・ゴンパ)
parent abf3b275a3
commit d4c74147df
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Description=dnf5 makecache
# while someone might theoretically want the cache updated, in practice
# anyone who wants that could override this via a file in /etc.
ConditionPathExists=!/run/ostree-booted
ConditionACPower=true
After=network-online.target

View File

@ -7,7 +7,7 @@ Wants=network-online.target
[Timer]
OnBootSec=10min
OnUnitInactiveSec=1h
OnUnitInactiveSec=3h
RandomizedDelaySec=60m
Unit=dnf5-makecache.service