Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 491520
Collapse All | Expand All

(-)/usr/sbin/run-crons.old (+5 lines)
Lines 30-35 Link Here
30
# for scripts to be executed. The info about last run is stored in
30
# for scripts to be executed. The info about last run is stored in
31
# /var/spool/cron/lastrun
31
# /var/spool/cron/lastrun
32
32
33
HAS_ERRORS=0
34
33
LOCKDIR=/var/spool/cron/lastrun
35
LOCKDIR=/var/spool/cron/lastrun
34
LOCKFILE=${LOCKDIR}/lock
36
LOCKFILE=${LOCKDIR}/lock
35
37
Lines 100-105 Link Here
100
			if [[ -x $SCRIPT && ! -d $SCRIPT ]]; then
102
			if [[ -x $SCRIPT && ! -d $SCRIPT ]]; then
101
				[ -x /usr/bin/logger ] && /usr/bin/logger -i -p cron.info -t run-crons "(`whoami`) CMD ($SCRIPT)"
103
				[ -x /usr/bin/logger ] && /usr/bin/logger -i -p cron.info -t run-crons "(`whoami`) CMD ($SCRIPT)"
102
				$SCRIPT
104
				$SCRIPT
105
				[ $? -ne 0 ] && HAS_ERRORS=1
103
			fi
106
			fi
104
		done
107
		done
105
	fi
108
	fi
Lines 108-110 Link Here
108
# Clean out bogus cron.$BASE files with future times
111
# Clean out bogus cron.$BASE files with future times
109
touch ${LOCKDIR}
112
touch ${LOCKDIR}
110
find ${LOCKDIR} -newer ${LOCKDIR} -exec /bin/rm -f {} \; &>/dev/null || true
113
find ${LOCKDIR} -newer ${LOCKDIR} -exec /bin/rm -f {} \; &>/dev/null || true
114
115
exit ${HAS_ERRORS}

Return to bug 491520