mlocate/mlocate.cron
Miloslav Trmac 5aabb4111c - Update to mlocate-0.18
- Run updatedb with reduced I/O priority Resolves: #254165
2007-08-24 23:31:53 +00:00

6 lines
174 B
Bash

#!/bin/sh
nodevs=$(< /proc/filesystems awk '$1 == "nodev" { print $2 }')
renice +19 -p $$ >/dev/null 2>&1
ionice -c2 -n7 -p $$ >/dev/null 2>&1
/usr/bin/updatedb -f "$nodevs"