Lines 128-134
for BASE in hourly daily weekly monthly ; do
Link Here
|
128 |
continue |
128 |
continue |
129 |
fi |
129 |
fi |
130 |
|
130 |
|
131 |
# Blow away stale states for this particular dir. |
131 |
# Blow away stale states for this particular dir. For intervals longer |
|
|
132 |
# than hourly, add one hour to avoid issues with DST transitions. |
132 |
lastrunfile="${LASTRUNDIR}/cron.${BASE}" |
133 |
lastrunfile="${LASTRUNDIR}/cron.${BASE}" |
133 |
if [ -e "${lastrunfile}" ] ; then |
134 |
if [ -e "${lastrunfile}" ] ; then |
134 |
case $BASE in |
135 |
case $BASE in |
Lines 136-149
for BASE in hourly daily weekly monthly ; do
Link Here
|
136 |
#>= 1 hour, 5 min -=> +65 min |
137 |
#>= 1 hour, 5 min -=> +65 min |
137 |
TIME="-cmin +65" ;; |
138 |
TIME="-cmin +65" ;; |
138 |
daily) |
139 |
daily) |
139 |
#>= 1 day, 5 min -=> +1445 min |
140 |
#>= 1 day, 1 hour, 5 min -=> +1505 min |
140 |
TIME="-cmin +1445" ;; |
141 |
TIME="-cmin +1505" ;; |
141 |
weekly) |
142 |
weekly) |
142 |
#>= 1 week, 5 min -=> +10085 min |
143 |
#>= 1 week, 1 hour, 5 min -=> +10145 min |
143 |
TIME="-cmin +10085" ;; |
144 |
TIME="-cmin +10145" ;; |
144 |
monthly) |
145 |
monthly) |
145 |
#>= 31 days, 5 min -=> +44645 min |
146 |
#>= 31 days, 1 hour, 5 min -=> +44705 min |
146 |
TIME="-cmin +44645" ;; |
147 |
TIME="-cmin +44705" ;; |
147 |
esac |
148 |
esac |
148 |
|
149 |
|
149 |
find "${LASTRUNDIR}/" -name cron.$BASE $TIME -exec rm {} \; 2>/dev/null || : |
150 |
find "${LASTRUNDIR}/" -name cron.$BASE $TIME -exec rm {} \; 2>/dev/null || : |