Opened 17 years ago
Closed 17 years ago
#3371 closed enhancement (fixed)
logrotate script for mythbackend logfile (weekly, 8 rotations)
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | contrib | Version: | head |
Severity: | medium | Keywords: | mythbackend logrotate log |
Cc: | Ticket locked: | no |
Description
I was looking into logrotate when helping to debug why the atrpms.net logrotate script was not rotating logs under particular circumstances (atrpms-users list, March 26 2007). I also noticed there was no similar script in /contrib for SVN, so thanks again to Axel for the inspiration.
The attached script will rotate and compress the mythbackend logfile weekly for 8 rotations, irrespective of log size, and will keep the most recent logfile uncompressed until the next rotation.
This script relies on the presence of a mythbackend pidfile, support for which I have included in #3370.
Cheers, Nick
logrotate script for mythbackend