Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408091 - sys-power/pm-utils-1.4.1-r2: Add logrotate configuration
Summary: sys-power/pm-utils-1.4.1-r2: Add logrotate configuration
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-13 22:30 UTC by Arthur D.
Modified: 2014-06-04 20:53 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 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