Comment 39 for bug 407862

> I still have one concern, and that is probably easy to verify: what happens
> if logrotate runs? Does it create the files with the proper owner and
> permissions? And if so, how does it know?

The default logrotate script does not create the files. It will move the existing file out of the way and let rsyslog recreate. It will also HUP (but this becomes a restart with new upstartification changes) rsyslog.

One interesting thing about logrotate is that it also doesn't know about user changes to the list of output files. The config just assumes. So it requires some skill as an admin to add/remove files correctly.

/var/log/syslog
{
 rotate 7
 daily
 missingok
 notifempty
 delaycompress
 compress
 postrotate
  restart rsyslog >/dev/null 2>&1 || true
 endscript
}

/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
 rotate 4
 weekly
 missingok
 notifempty
 compress
 delaycompress
 sharedscripts
 postrotate
  restart rsyslog >/dev/null 2>&1 || true
 endscript
}