/etc/logrotate.d/cvs file has an error. To reproduce the error do: # /etc/logrotate.d # logrotate -f -v cvs reading config file cvs reading config info for /var/log/cvspserver error: cvs:9 unknown option 'endscript' -- ignoring line The error causes an email to be sent to root daily (logrotate is cron.daily) even when the logrotate is successful. Reproducible: Always Steps to Reproduce: If you run the commands outlined in "Details", you will have to "touch /var/log/cvspserver" for repeating the command. Actual Results: See details. Expected Results: There should be no syntax error in the /etc/logrotate.d/cvs I cannot find the origin of the /etc/logrotate.d/cvs file, so I paste it here hoping that someone can contact the original author: $ cd /etc/logrotate.d $ cat cvs # $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate,v 1.1 2003/03/11 04:05:11 agriffis Exp $ # # Syslog-ng logrotate snippet for Gentoo Linux # contributed by Michael Sterrett # /var/log/cvspserver { sharedscripts endscript }
Same thing with /etc/logrotate.d/amavisd (endscript) and no way of finding origine of scripts either, equery doesn't know and can't find the file (or variant of) in any ebulds /files dir either so not sure how it has ended up there? What worse is that amavisd-new-3.2.3 dies on each logrotate as well. Not confirmed though it's because of this as I just found this bug. Will report back on next rotate with endscript removed. This is how the amavisd script looks: # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/logrotate.mysql,v 1.4 2005/02/01 21:52:22 robbat2 Exp $ /var/amavis/amavis.log { weekly create 660 amavis root notifempty size 1M sharedscripts missingok postrotate /bin/kill -HUP `cat /var/amavis/amavisd.pid` endscript }
Ops just saw this was a dupe, but I run 3.7.1 of logrotate and it's still same issue.
ops again, no dupe this, I was confused by bugzilla :-)
No such files here and no idea what installed it...