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 |