]> git.pld-linux.org Git - packages/man-db.git/blob - man-db.daily
- updated to 2.6.6
[packages/man-db.git] / man-db.daily
1 #!/bin/sh
2
3 if [ -e /etc/sysconfig/man-db ]; then
4     . /etc/sysconfig/man-db
5 fi
6
7 if [ "$CRON" = "no" ]; then
8    exit 0
9 fi
10
11 renice +19 -p $$ >/dev/null 2>&1
12 ionice -c3 -p $$ >/dev/null 2>&1
13
14 LOCKFILE=/var/lock/man-db.lock
15
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
21
22 trap "{ rm -f $LOCKFILE ; exit 0; }" EXIT
23 touch $LOCKFILE
24 # create/update the mandb database
25 mandb $OPTS
26
27 exit 0
This page took 0.06768 seconds and 3 git commands to generate.