[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] RE: cobalt-users digest, Vol 1 #6583 - 13 msgs
- Subject: [cobalt-users] RE: cobalt-users digest, Vol 1 #6583 - 13 msgs
- From: "Jon" <jjma100@xxxxxxxxxxx>
- Date: Mon Dec 22 02:12:02 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
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