logrotate /var/log/maillog

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



Hi,

I want to create a new log /var/log/maillog for postfix each day and so i created a new logrotate config for the log and removed it from /etc/logrotate.d/syslog.

~]# cat /etc/logrotate.d/maillog
/var/log/maillog {
     daily
     rotate 31
     start 1
     compress
     create 0600  root
     postrotate
     /etc/init.d/postfix reload > /dev/null
     endscript
     }

After /var/log/maillog has rotated, postfix doesn't log anything to the new log file till i restart syslog. It doesn't matter if i reload or restart postfix.
Is this a normal behaviour with this log file and if yes why?



Thomas
_______________________________________________
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