cron+slocate+updatedb

ノートパソコン起動時にupdatedbが走って、
起動にとても時間がかかった。
updatedbの入出力の優先度をidleに下げておいた。

/etc/cron.daily/slocate を修正。

--- slocate.orig	2009-10-09 19:49:18.607239291 +0900
+++ slocate	2009-10-09 19:48:26.565745925 +0900
@@ -4,8 +4,8 @@
 then
 	if [ -f /etc/updatedb.conf ]
 	then
-		nice /usr/bin/updatedb
+		nice ionice -c 3 /usr/bin/updatedb
 	else
-		nice /usr/bin/updatedb -f proc
+		nice ionice -c 3 /usr/bin/updatedb -f proc
 	fi
 fi