From: Steinar H. Gunderson Date: Wed, 7 Apr 2021 07:33:33 +0000 (+0200) Subject: Move timer settings from .service to .timer file. X-Git-Tag: 1.1.7~1 X-Git-Url: https://git.sesse.net/?p=plocate;a=commitdiff_plain;h=4f01649b82aca67fe3f5bf0192cf25c6903282fa;hp=bb337f9bcc06ac3c2a780f60425ac38bb59da6a7 Move timer settings from .service to .timer file. Patch from Vladimir Lomov. --- diff --git a/plocate-updatedb.service.in b/plocate-updatedb.service.in index 03f9665..a075051 100644 --- a/plocate-updatedb.service.in +++ b/plocate-updatedb.service.in @@ -1,8 +1,6 @@ [Unit] Description=Update the plocate database ConditionACPower=true -RandomizedDelaySec=12h -AccuracySec=20min [Service] Type=oneshot diff --git a/plocate-updatedb.timer b/plocate-updatedb.timer index 1f69330..236f45f 100644 --- a/plocate-updatedb.timer +++ b/plocate-updatedb.timer @@ -3,6 +3,8 @@ Description=Update the plocate database daily [Timer] OnCalendar=daily +RandomizedDelaySec=12h +AccuracySec=20min Persistent=true [Install]