When I try to logrotate denyhosts's log file, it reports an error when reading the configuration file. Reproducible: Always Steps to Reproduce: 1. logrotate -d /etc/logrotate.d/denyhosts Actual Results: reading config file /etc/logrotate.d/denyhosts reading config info for /var/log/denyhosts error: /etc/logrotate.d/denyhosts:1 lines must begin with a keyword or a filename (possibly in double quotes) error: /etc/logrotate.d/denyhosts:2 unexpected text error: /etc/logrotate.d/denyhosts:3 unexpected text error: /etc/logrotate.d/denyhosts:4 unexpected text error: /etc/logrotate.d/denyhosts:5 unexpected text error: /etc/logrotate.d/denyhosts:prerotate or postrotate without endscript removing last 1 log configs It seems that the problem is caused by CRLF characters in the /etc/logrotate.d/denyhosts file. Replacing them by LF has solved the problem for me.
I have the same problem, with the same fix of removing carriage returns. It happens in app-admin/denyhosts-2.6-r2 but not app-admin/denyhosts-2.6-r1.
ah, my bad. I committed a new file without crlf's