View | Details | Raw Unified
Collapse All | Expand All

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