|
|
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 |