Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95341 - logrotate cvs unknown option endscript
Summary: logrotate cvs unknown option endscript
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Aron Griffis (RETIRED)
Depends on:
Reported: 2005-06-07 06:16 UTC by Martin d'Anjou
Modified: 2007-01-20 21:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Martin d'Anjou 2005-06-07 06:16:29 UTC
/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 {
Comment 1 Joakim 2005-07-31 03:42:35 UTC
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 {
create 660 amavis root
size 1M
/bin/kill -HUP `cat /var/amavis/`
Comment 2 Joakim 2005-07-31 03:46:08 UTC
Ops just saw this was a dupe, but I run 3.7.1 of logrotate and it's still same
Comment 3 Joakim 2005-07-31 03:48:48 UTC
ops again, no dupe this, I was confused by bugzilla :-)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-01-20 21:24:36 UTC
No such files here and no idea what installed it...