5aabb4111c
- Run updatedb with reduced I/O priority Resolves: #254165
6 lines
174 B
Bash
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"
|