Tim - moores.homeip.net wrote:
Has anyone else had any trouble with the logrotate script working? My files are getting quite large and I don't have one compressed archive of older files. I did collapse my syslog server to write to only /var/log/messages and /var/log/mail. The script runs, but never rotates the files. Any ideas why? Here is some of my files:
(...) I always had problems with logrotate: refusing to rotate all logs, one specific logfile, sometimes seems to stop working, didn't worked whell called by cron but works well when you call /etc/cron.daily/logrotate from a shell, ... Despite being a very essencial program, it still plays tricks with us all (well, at least me). Just to mention - had problems with logrotate in Redhat, Suse, Debian... Try /usr/sbin/logrotate -d /etc/logrotate.conf check the output to see what would be done - if you agree with it, then /usr/sbin/logrotate -v /etc/logrotate.conf After that, run again with '-d' to see if it wants to rotate the logs again. It should do nothing If everything fails, try '-v --force' - perhaps it resets the state file, and restore the sanity to logrotate. BTW - in my Suse 9.0, for some reason, after installing amavisd-new my /var/spool/amavis/amavis.log isn't rotated by default... probably they forgot, because /var/spool isn't a good place to put logfiles... Good luck, -- Marcos Lazarini