1 (edited by yaman 2010-06-18 13:32:42)

Topic: mail.log not written after archiving mail.log.bz2

I found, that after archiving mail.log in mail.log.bz2 I don`t see anything in the output of command "cat mail.log". Log starting written again after "service rsyslog restart". What happenеd? Here is /etc/logrotate.d/maillog:

root@mail:/etc/logrotate.d# nano maillog

/var/log/mail.log {
    compress
    daily
    rotate 30
    create 0600 root root
    missingok

    # Use bzip2 for compress.
    compresscmd /bin/bzip2
    uncompresscmd /bin/bunzip2
    compressoptions -9
    compressext .bz2

    postrotate
        invoke-rc.d rsyslog reload > /dev/null
    endscript
}

If I must add to end of its script string "service rsyslog restart"?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: mail.log not written after archiving mail.log.bz2

yaman wrote:

If I must add to end of its script string "service rsyslog restart"?

You can try it.