Magellan Linux

Diff of /trunk/man-db/man-db.cron

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2730 by niro, Fri Jan 13 14:31:39 2012 UTC revision 2731 by niro, Thu Dec 3 10:41:05 2015 UTC
# Line 19  LOCKFILE="/run/lock/man-db.lock" Line 19  LOCKFILE="/run/lock/man-db.lock"
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

Legend:
Removed from v.2730  
changed lines
  Added in v.2731