我每周都会收到以下错误邮件。这似乎是cron、logrotate或denyhost的一个问题。我不确定是哪一个。
Subject: Cron <root@vps> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
/etc/cron.daily/logrotate:
test: 91: /etc/hosts.deny: unexpected operator有什么建议吗?
发布于 2009-09-29 19:44:54
在我看来,在/etc/hosts.deny或/etc/cron.day/ line旋转的第91行中出现了一个错误。
确保hosts.deny中的条目是有效格式化的。
发布于 2009-10-01 01:30:32
在/etc/logrotate.d/denyhost中怎么样?
发布于 2009-11-29 17:57:06
/etd/logrotate.d/denyhost非常短,在我看来并不使用test:
/var/log/denyhosts {
create 0640 root root
missingok
weekly
rotate 7
compress
postrotate
/etc/init.d/denyhosts restart > /dev/null
endscript
}
/etc中文件第91行中唯一的“测试”实例是在一个无关的文件中。
Cron.day/log旋转式作业点是/usr/sbin/log旋转式(二进制文件) --如果bug在那里,我可以在哪里检查源代码?
https://serverfault.com/questions/69722
复制相似问题