[ATrpms-users] log-rotate facility for mythtv
Jeffrey J. Kosowsky
atrpms at kosowsky.org
Sun Mar 25 19:31:20 CEST 2007
Just noticed that the /var/log/mythtv/mythbackend.log just continues
growing forever (so does /var/log/mythtfilldatabase but it seems to
collect much less information). Even worse, since mythbackend.log is
'hidden' in the subdirectory /var/log/mythtv, casual users may not
notice how big the log file is getting...
Would it be reasonable to add a logrotate facility for the mythtv
rpms?
Something like the following would work:
/etc/logrotate.d/mythtv
# Logrotate file for mythtv log files
/var/log/mythfilldatabase.log {
compress
missingok
notifempty
monthly
rotate 2
copytruncate
}
/var/log/myth/mythbackend.log {
compress
missingok
notifempty
weekly
rotate 4
copytruncate
}
More information about the atrpms-users
mailing list