1 (edited by Albux 2010-09-06 17:04:54)

Topic: Problem with logrotate: empty logs - Ubuntu bug [SOLVED]

Hello,

I've had the problem from the Ubuntu rsyslogd Bug: https://bugs.launchpad.net/ubuntu/+sour … bug/407862

After logrotate was launched the rsyslogd was not writing anymore in the mail (and other) logs.

I've solved it modifying the /etc/logrotate.d/maillog

at the line where it re-creates the logs to:
create 0640 syslog adm

and making a
chmod 0640 /var/log/mail*

and a
chown syslog:adm to /var/log/mail*

(I also did the same thing for MySQL logs that had the same problem)
Now everything seems to work correctly.

Hope it helps someone smile smile

Alberto

2

Re: Problem with logrotate: empty logs - Ubuntu bug [SOLVED]

I can now confirm the solution posted above is working OK.

3

Re: Problem with logrotate: empty logs - Ubuntu bug [SOLVED]

I removed logrotate setting for maillog, just use system default setting.