3 if [ -e /etc/sysconfig/man-db ]; then
4 . /etc/sysconfig/man-db
7 if [ "$CRON" = "no" ]; then
11 renice +19 -p $$ >/dev/null 2>&1
12 ionice -c3 -p $$ >/dev/null 2>&1
14 LOCKFILE=/var/lock/man-db.lock
16 # the lockfile is not meant to be perfect, it's just in case the
17 # two man-db cron scripts get run close to each other to keep
18 # them from stepping on each other's toes. The worst that will
19 # happen is that they will temporarily corrupt the database
20 [ -f $LOCKFILE ] && exit 0
22 trap "{ rm -f $LOCKFILE ; exit 0; }" EXIT
24 # create/update the mandb database