[mythtv-commits] Ticket #3371: logrotate script for mythbackend logfile (weekly, 8 rotations)
MythTV
mythtv at cvs.mythtv.org
Sat Apr 28 04:12:47 UTC 2007
#3371: logrotate script for mythbackend logfile (weekly, 8 rotations)
------------------------------------------------------+---------------------
Reporter: Nick Morrott <knowledgejunkie at gmail.com> | Owner: ijr
Type: enhancement | Status: new
Priority: minor | Milestone: unknown
Component: contrib | Version: head
Severity: medium |
------------------------------------------------------+---------------------
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
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3371>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list