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

Re: [cobalt-users] Raq4 - Error rotating logs with 1gb of ram!



> There is an executable at /etc/cron.daily/logrotate. This is run once a
day
> and does the log rotation. If you add the following to the top of the
> script:
>
> rm /home/sites/site*/logs/*.log
> rm /var/log/httpd/access
> rm /var/log/httpd/error
> That will delete all your web/mail and ftp log files. Note: These will be
> unrecoverable!

geese... Thats crazy...

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

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...

Zeffie
Cobalt RaQ System Administration, Maintenance and Repairs.
http://www.zeffie.com/how_to_contact_zeffie.html 734.454.9117
http://www.zeffie.com/ Home of the Worlds Largest Collection of RaQ rpms
Advanced Cobalt Security, Firewall, Snort, AntiSpam, AntiVirus and other
GUI's