I'm working on Ubuntu 14 with the default rsyslog and logrotate utility.
In the default rsyslog logrotate /etc/logrotate.d/rsyslog
config I see the following:
/var/log/syslog
{
rotate 7
daily
missingok
notifempty
delaycompress
compress
postrotate
reload rsyslog >/dev/null 2>&1 || true
endscript
}
From what I understand, it is recommended to use copytruncate in all logrotate scenarios, as it doesn't moves the current log, but rather truncates the log so any process with an open file handler will be able to keep writing to it.
So how come the default configuration using rsyslog reload feature instead?