Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 408091

Summary: sys-power/pm-utils-1.4.1-r2: Add logrotate configuration
Product: Gentoo Linux Reporter: Arthur D. <spinal.by>
Component: [OLD] Core systemAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Arthur D. 2012-03-13 22:30:34 UTC
I use pm-utils to suspend/hibernate my system.
There are 2 log files that grow with time:
/var/log/pm-powersave.log
/var/log/pm-suspend.log
These files should probably be rotated by logrotate service.

Reproducible: Always




This can be done to resolve the problem:

cat > /etc/logrotate.d/pm-utils << "EOF"
/var/log/pm-*.log {
    compress
    rotate 4
    weekly
    missingok
    notifempty
}
EOF
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-06-04 20:53:40 UTC
done in 1.4.1-r5 using pm-utils.logrotate from http://ftp.de.debian.org/debian/pool/main/p/pm-utils/pm-utils_1.4.1-14.debian.tar.xz