[CentOS] logrotate /var/log/maillog
Thomas Antony
thomas at antony.euFri Sep 21 11:06:06 UTC 2007
- Previous message: [CentOS] Migrating from ancient Fedora (was Fedora Core 5 EOL on 2007-06-29)
- Next message: [CentOS] logrotate /var/log/maillog
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [CentOS] Migrating from ancient Fedora (was Fedora Core 5 EOL on 2007-06-29)
- Next message: [CentOS] logrotate /var/log/maillog
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list