Bug 232830 - /var/log/rpmpkgs occasionally gets zerored out
/var/log/rpmpkgs occasionally gets zerored out
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Panu Matilainen
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-18 11:04 EDT by Need Real Name
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-09 15:36:27 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2007-03-18 11:04:28 EDT
Description of problem:
I have noticed that occasionally the file /var/log/rpmpkgs gets truncated to
zero length.

The file can be restored by either running /etc/cron.daily/rpm directly or
waiting until it gets run automatically the next day.

This seems to happen randomly so I am not (yet) sure what precipitates this.
Comment 1 Jeff Johnson 2007-03-18 14:35:13 EDT
Nothing except the cron script touches /var/log/rpmpkgs. Rewrite the
cron script to write to temp file, and mv to rpmpkgs iff the query succeeds,
if you really care.

WORKSFORME.
Comment 2 Panu Matilainen 2007-08-09 15:36:27 EDT
rpm.org script rewritten to avoid truncating the log in case of errors.

Note You need to log in before you can comment on or make changes to this bug.