]> git.sesse.net Git - plocate/commitdiff
Randomize updatedb systemd unit start time.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Fri, 2 Apr 2021 11:12:49 +0000 (13:12 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Fri, 2 Apr 2021 11:13:19 +0000 (13:13 +0200)
Suggested by Calum McConnell.

plocate-updatedb.service.in

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