Bug 163786
Summary: | Timestamp of /var/log/rpmpkgs could be useful | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jeff Norden <jeff> | ||||
Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Mike McLean <mikem> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4 | Keywords: | FutureFeature | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Enhancement | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-08-25 15:30:23 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Jeff Norden
2005-07-21 01:56:01 UTC
Created attachment 117001 [details]
replacement for the /etc/cron.daily/rpm script
Well... drat. Logrotate doesn't work the way I was thinking, so my first attachment won't work as advertised. The weekly rotation will create an empty /var/log/rpmpkgs, which will cause a new list of rpm's to then be generated. Adding the "copy" option to /etc/logrotated.d/rpm would preserve the log file's timestamp, but still won't prevent weekly rotation of identical files. logrotate never looks at the modification times of the log files, just the "last rotation date" that it has stored. I guess a fix would be to do the rotation in the cron.daily/rpm script and to delete the logrotate.d/rpm file altogether. I'll post a candidate scirpt a little later. Sorry for the confusion. What purpose is served by copying a time stamp to another file? That is way too subtle and fragile imho, better imho is to just log the last installed time somewhere. |