Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 242260

Summary: syslog-ng logrotate scripts should ignore missing files
Product: Gentoo Linux Reporter: edoceo <code>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to app-admin/syslog-ng/files/syslog-ng.logrotate

Description edoceo 2008-10-15 20:33:40 UTC
the app-admin/syslog-ng package includes two files that maybe added to /etc/logrotate.d after installation.  One file is specific for hardened Gentoo.

These logrotate scripts throw errors when their expected files are missing, which throws errors in my cron jobs.

I have a very custom my syslog-ng config and as such I don't have files like /var/log/messages that these logrotate scripts expect (there are many more in the hardened script).

I would like these logrotate.d scripts to add the 'missingok' parameter so that I and other like me who tweak syslog-ng (of which there are few) don't have edit these logrotate.d scripts after the upgrades and don't have to worry about them during etc-update.  I suspect there is no impact to those who use the distribution default syslog-ng and logrotate scripts.

I have a patch for the standard logrotate script but not one for hardened, should I make one?

Thank you.
Comment 1 edoceo 2008-10-15 20:36:02 UTC
Created attachment 168610 [details, diff]
patch to app-admin/syslog-ng/files/syslog-ng.logrotate

I've just added missingok so that when /var/log/messages is not present errors are suppressed
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2008-10-15 20:46:23 UTC
in portage.  thanks for the bug report and patch.
Comment 3 edoceo 2008-10-15 20:50:56 UTC
Wow was that responsive! Thank you for proving to me yet again that Gentoo is enterprise ready.  You guys rock!