|
|
#>= 31 days, 5 min -=> +44645 min | #>= 31 days, 5 min -=> +44645 min |
TIME="-cmin +44645" ;; | TIME="-cmin +44645" ;; |
esac | esac |
find ${LOCKDIR} -name cron.$BASE $TIME -exec rm {} \; &>/dev/null || true |
find ${LOCKDIR} -name cron.$BASE $TIME -type f | xargs rm -f |
fi | fi |
| |
# if there is no touch file, make one then run the scripts | # if there is no touch file, make one then run the scripts |
|
|
| |
# Clean out bogus cron.$BASE files with future times | # Clean out bogus cron.$BASE files with future times |
touch ${LOCKDIR} | touch ${LOCKDIR} |
find ${LOCKDIR} -newer ${LOCKDIR} -exec /bin/rm -f {} \; &>/dev/null || true |
find ${LOCKDIR} -newer ${LOCKDIR} -exec /bin/rm -f {} \; |