I have the following setup: removed the line contaning /var/log/maillog
from /etc/logrotate.d/syslog
file, and added the following in /etc/logrotate.conf
file:
...
# system-specific logs may be also be configured here.
/var/log/maillog
{
missingok
notifempty
nocompress
size=50k
postrotate
touch /var/log/maillog
endscript
}
Why does the touch /var/log/maillog
line never get executed when the file size reaches 50k?