Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198228 - app-admin/logrotate should not compress wtmp
Summary: app-admin/logrotate should not compress wtmp
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal trivial
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-06 01:46 UTC by Kevin Bryan
Modified: 2009-03-10 02:24 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Bryan 2007-11-06 01:46:46 UTC
The default logrotate file contains an entry for wtmp:

# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}

The last(1) command takes a -f argument for the wtmp file to use, but it's not capable of reading .gz files, so I'd suggest adding 'nocompress' to the entry.
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-11-06 17:09:04 UTC
Hmm... I'm a bit ambivilant on this one.  On the one hand, it's easy to unzip if you need to look at old wtmp entries.  On the other hand, wtmp (on my systems) is really small; but, I don't have even remotely busy systems.  A big wtmp gets ~1M, and compresses down to ~100k.  This *could* be an issue...  But it's unlikely.

I'll think about it for a bit, and make a decision.  Any input you want to give would be helpful.
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-03-10 02:24:20 UTC
I think I'm going to leave it as it is.