]> git.sesse.net Git - plocate/blobdiff - plocate-updatedb.service.in
Randomize updatedb systemd unit start time.
[plocate] / plocate-updatedb.service.in
index e7cb0141dff5750865efc4eabf289df787651403..03f9665ea9afebababfb771fde7abeda1623ca24 100644 (file)
@@ -1,10 +1,12 @@
 [Unit]
 Description=Update the plocate database
 ConditionACPower=true
+RandomizedDelaySec=12h
+AccuracySec=20min
 
 [Service]
 Type=oneshot
-ExecStart=@sbindir@/updatedb
+ExecStart=@sbindir@/@updatedb_progname@
 LimitNOFILE=131072
 IOSchedulingClass=idle