Behave more like the old service, with the "--timer" option.
This commit is contained in:
parent
abf3b275a3
commit
d4c74147df
|
@ -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
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Wants=network-online.target
|
|||
|
||||
[Timer]
|
||||
OnBootSec=10min
|
||||
OnUnitInactiveSec=1h
|
||||
OnUnitInactiveSec=3h
|
||||
RandomizedDelaySec=60m
|
||||
Unit=dnf5-makecache.service
|
||||
|
||||
|
|
Loading…
Reference in New Issue