Code: Select all
/etc/crontab
59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
Code: Select all
b.py: 03:10:12, 03:37:40
cnh.py: 03:10:28, 03:38:24
c.py: 03:10:12, 03:39:12
h.py: 04:01:18, 05:18:11
r.py: 04:10:43, 05:29:53
v.py: 04:11:10, 05:30:49
Code: Select all
# grep -i cron.daily /var/log/messages
May 29 03:00:02 gentoo anacron[1282]: Will run job `cron.daily' in 37 min.
May 29 03:01:02 gentoo anacron[2180]: Job `cron.daily' locked by another anacron - skipping
May 29 03:09:02 gentoo CROND[7407]: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.daily)
May 29 03:10:01 gentoo run-crons[8290]: (root) CMD (/etc/cron.daily/b.py)
May 29 03:10:14 gentoo run-crons[8420]: (root) CMD (/etc/cron.daily/cnh.py)
May 29 03:10:29 gentoo run-crons[8533]: (root) CMD (/etc/cron.daily/c.py)
May 29 03:10:46 gentoo run-crons[8674]: (root) CMD (/etc/cron.daily/emerge-sync)
May 29 03:37:02 gentoo anacron[1282]: Job `cron.daily' started
May 29 04:00:05 gentoo anacron[29793]: Job `cron.daily' locked by another anacron - skipping
May 29 04:01:02 gentoo anacron[30570]: Job `cron.daily' locked by another anacron - skipping
May 29 04:01:06 gentoo run-crons[30702]: (root) CMD (/etc/cron.daily/h.py)
May 29 04:01:19 gentoo run-crons[30848]: (root) CMD (/etc/cron.daily/logrotate)
May 29 04:01:44 gentoo run-crons[31062]: (root) CMD (/etc/cron.daily/man-db)
May 29 04:10:35 gentoo run-crons[10894]: (root) CMD (/etc/cron.daily/r.py)
May 29 04:10:45 gentoo run-crons[11140]: (root) CMD (/etc/cron.daily/update-clock)
May 29 04:11:01 gentoo run-crons[11318]: (root) CMD (/etc/cron.daily/v.py)
May 29 05:00:02 gentoo anacron[7857]: Job `cron.daily' locked by another anacron - skipping
May 29 05:01:01 gentoo anacron[9366]: Job `cron.daily' locked by another anacron - skipping
May 29 05:30:52 gentoo anacron[1282]: Job `cron.daily' terminated (mailing output)
# ps axjf | grep -i [c]ron
1 6385 6385 6385 ? -1 Ss 0 0:02 /usr/sbin/crond
__
sol
