Kevin Coyner wrote:

Try it as follows:

/var/log/mail.log {
        weekly
        nocompress
        rotate 4
        missingok
        create 640 root adm
        postrotate
        #reload syslog
        /etc/init.d/sysklogd reload
        #reload postfix
        /etc/init.d/postfix reload
        endscript
}


As I read the man page for logrotate, in one of the examples it has
nocompress after endscript just as yours does.  The man explains it
by saying the log files will NOT be compressed if an error occurs on
more than one file.  I presume your files are not encountering
errors, therefore they are compressed because you have the
'nocompress' option following the 'endscript' option.

Kevin

Kevin,

Unfortunately one of my log-files got compressed again, so this didn't work at all.

I've read something in another NG about sysklogd may be overtaking logrotate. Could this be the solution?

Do you (or anyone else) know how to check this or to disable this for the particular log in question?

Thanks in advance

/ Martin


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to