[Bug 407862] Re: [karmic] Messages not being sent to system logs

Michael Terry michael.terry at canonical.com
Wed Sep 16 16:55:43 BST 2009


> 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
}

-- 
[karmic] Messages not being sent to system logs
https://bugs.launchpad.net/bugs/407862
You received this bug notification because you are a member of Ubuntu
Sponsors for main, which is a direct subscriber.



More information about the Ubuntu-main-sponsors mailing list