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 / +13 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
		args=""
8
	else
8
	else
9
		nice /usr/bin/updatedb -f proc
9
		args="-f proc"
10
	fi
10
	fi
11
12
	if [ -f /etc/mlocate-cron.conf ]
13
	then
14
		. /etc/mlocate-cron.conf
15
	fi
16
17
	# run on active process in case ionice isnt installed, or
18
	# system is really old and ionice doesnt work ...
19
	ionice -c ${IONICE_CLASS:-2} -n ${IONICE_PRIORITY:-7} -p $$ 2>/dev/null
20
21
	nice -n ${NICE:-10} /usr/bin/updatedb ${args}
11
fi
22
fi

Return to bug 231203