19 |
# two man-db cron scripts get run close to each other to keep |
# two man-db cron scripts get run close to each other to keep |
20 |
# them from stepping on each other's toes. The worst that will |
# them from stepping on each other's toes. The worst that will |
21 |
# happen is that they will temporarily corrupt the database |
# happen is that they will temporarily corrupt the database |
22 |
[ -f $LOCKFILE ] && exit 0 |
[[ -f ${LOCKFILE} ]] && exit 0 |
23 |
|
|
24 |
trap "{ rm -f ${LOCKFILE}; exit 255; }" EXIT |
trap "{ rm -f ${LOCKFILE}; exit 0; }" EXIT |
25 |
touch ${LOCKFILE} |
touch ${LOCKFILE} |
26 |
|
|
27 |
# create/update the mandb database |
# create/update the mandb database |