Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242260 - syslog-ng logrotate scripts should ignore missing files
Summary: syslog-ng logrotate scripts should ignore missing files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-15 20:33 UTC by edoceo
Modified: 2008-10-15 20:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to app-admin/syslog-ng/files/syslog-ng.logrotate (syslog-ng.logrotate.patch,283 bytes, patch)
2008-10-15 20:36 UTC, edoceo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!