我们有许多脚本设置在其中运行/etc/cron.daily directory
- 其中一些显示在大约正确的时间运行的证据(文件被存档/压缩和截断),但其他似乎被忽略了。
检查两者/var/log/cron.log
并/var/log/syslog
没有列出任何日常工作 - 只有每小时(和几个 20 分钟的工作)。
某处还有其他日志吗?crontab 包含以下几行:
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 4 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )