File mlocate.service of Package mlocate
[Unit] Description=Update locate database Documentation=man:updatedb [Service] Type=oneshot ExecStart=/bin/sh -c \ "chown -R ${RUN_UPDATEDB_AS}:root /var/lib/mlocate && \ su ${RUN_UPDATEDB_AS} -c /usr/bin/updatedb" # Ensure we have proper umask bnc#941296 UMask=0022 # Alter the priority of the updatedb process Nice=19 IOSchedulingClass=2 IOSchedulingPriority=7 # Load sysconfig EnvironmentFile=/etc/sysconfig/locate