Re: CentOS 5.4 logrotate and syslog

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



Ryan Ivey wrote on Mon, 9 Nov 2009 12:47:01 -0500:

> The file rotates correctly if I manually force it, however my logs won't
> update until I restart syslogd.  In other words, the new /var/log/maillog
> isn't created after the logrotate.  I have to manually restart syslogd and
> manually touch /var/log/maillog.

Look in the syslog file for logrotate where the original content for your 
"recipe" is. There is *no* need to have an extra mail file for logrotate, 
just get rid of it. Instead change MailScanner logging to a different file 
and then use something like that. Look at the last line!

/var/log/mailscanner.log {
    weekly
    compress
    dateext
    maxage 365
    rotate 99
    size=+4096k
    notifempty
    missingok
    copytruncate
}

BTW: your question should have gone to the MailScanner list, anyway.


Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux