Bug 232830 - /var/log/rpmpkgs occasionally gets zerored out
Summary: /var/log/rpmpkgs occasionally gets zerored out
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-03-18 15:04 UTC by Need Real Name
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-08-09 19:36:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2007-03-18 15:04:28 UTC
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 18:35:13 UTC
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 19:36:27 UTC
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.