]> git.sesse.net Git - plocate/commitdiff
Move timer settings from .service to .timer file.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 7 Apr 2021 07:33:33 +0000 (09:33 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 7 Apr 2021 07:33:33 +0000 (09:33 +0200)
Patch from Vladimir Lomov.

plocate-updatedb.service.in
plocate-updatedb.timer

index 03f9665ea9afebababfb771fde7abeda1623ca24..a07505126153524fc664972a3c4f56ec6c254331 100644 (file)
@@ -1,8 +1,6 @@
 [Unit]
 Description=Update the plocate database
 ConditionACPower=true
-RandomizedDelaySec=12h
-AccuracySec=20min
 
 [Service]
 Type=oneshot
index 1f69330cd2557fd037c5cdb2a4e4eb7e854afb54..236f45fd79330984785c3fc35c05c7426971c665 100644 (file)
@@ -3,6 +3,8 @@ Description=Update the plocate database daily
 
 [Timer]
 OnCalendar=daily
+RandomizedDelaySec=12h
+AccuracySec=20min
 Persistent=true
 
 [Install]