Changeset 13310 for trunk/DataCheck


Ignore:
Timestamp:
04/04/12 16:26:29 (13 years ago)
Author:
Daniela Dorner
Message:
warn only if lockfile older than 5 minutes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Sourcefile.sh

    r13302 r13310  
    139139   if ! echo `date +%F\ %T`" "`whoami`"@"$HOSTNAME" "$SCRIPTNAME"["$$"] "`uname -a` > $lockfile 2>/dev/null
    140140   then
    141       printprocesslog "WARN lockfile $lockfile exists"
     141      if find $lockfile -amin -5
     142      then
     143         printprocesslog "INFO lockfile $lockfile exists"
     144      else
     145         printprocesslog "WARN lockfile $lockfile exists"
     146      fi
    142147      $@
    143148      exit
Note: See TracChangeset for help on using the changeset viewer.