Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 231203 | Differences between
and this patch

Collapse All | Expand All

(-)mlocate.cron (-2 / +9 lines)
Lines 4-11 Link Here
4
then
4
then
5
	if [ -f /etc/updatedb.conf ]
5
	if [ -f /etc/updatedb.conf ]
6
	then
6
	then
7
		nice /usr/bin/updatedb
7
		. /etc/updatedb.conf
8
		args=""
8
	else
9
	else
9
		nice /usr/bin/updatedb -f proc
10
		args="-f proc"
10
	fi
11
	fi
12
13
	# run on active process in case ionice isnt installed, or
14
	# system is really old and ionice doesnt work ...
15
	ionice -c ${IONICE_CLASS:-2} -n ${IONICE_PRIORITY:-7} -p $$ 2>/dev/null
16
17
	nice -n ${NICE:-10} /usr/bin/updatedb ${args}
11
fi
18
fi

Return to bug 231203