[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] error logrotate



> I'm looking in the archive but i can't find the problem, running
> /etc/cron.daily/logrotate
> I get the error error: apache.bak:1 duplicate log entry for
> /var/log/httpd/access
> My apche.bak file that hs the access line  looks like
> /var/log/httpd/access {
> prerotate
> /usr/local/sbin/split_logs web < /var/log/httpd/access
> endscript
> missingok
> postrotate
> /usr/bin/killall -HUP httpd 2> /dev/null || true
> endscript
> daily
> }
> my /etc/cron.daily/logrotate looks like
> #!/bin/sh
> /usr/sbin/logrotate /etc/logrotate.conf

Hey Stefan,

This is just a WAG, but shouldn't the "daily" option be between the
"prerotate" and "postrotate"?

Have you tried running logrotate with the debugger?

/usr/sbin/logrotate -d /etc/logrotate.conf

HTH,
j

-- 
http://www.bizmanuals.com