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

[cobalt-users] RE: cobalt-users digest, Vol 1 #6583 - 13 msgs



Hello,

> you need to determine why it's not running.. many
> things can cause this....
> you can do
> /usr/sbin/logrotate -d /etc/logrotate.conf

Is there a way to pipe this out to a file using cat or mailing
the contents. I tried but received no contents.

> but you have the error message
> ==================================
> errors occured while rotating /var/log/httpd/access
>
> error running prerotate script --
> leaving old log in place
> ==================================
>
> So now would be a good time to check your prerotate
> scripts in the apache
> logrotate file and see whats not working anymore and
> causing an error that
> makes it stop running each day...

I ran a comparison with the other working raq4 by making a copy
of the 'working' script for apache from the logrotate.d directory
and running diff on the two copies, but nothing turned up.

Here is the script from the failing raq4:

#UW PICO(tm) 4.6                                   File:
/etc/logrotate.d/apache

/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
}

regards

Jonathan