On my workstation, plocate-updatedb often starts right after waking up
from suspend in the morning, consuming a lot of CPU time and slowing
down other running processes. Mitigate this by specifying a low
scheduling priority in the unit file.
For reference, man-db's unit file does the same:
https://gitlab.com/man-db/man-db/-/blob/
0df248b30beb6ec9aa8f57a72a39c3a85cd2b633/init/systemd/man-db.service.in#L13
Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>
ExecStart=@sbindir@/@updatedb_progname@
LimitNOFILE=131072
IOSchedulingClass=idle
+Nice=19
PrivateTmp=true
PrivateDevices=true