Opened 17 years ago

Closed 17 years ago

#3371 closed enhancement (fixed)

logrotate script for mythbackend logfile (weekly, 8 rotations)

Reported by: Nick Morrott <knowledgejunkie@…> 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

Attachments (1)

etc.logrotate.d.mythbackend (327 bytes) - added by Nick Morrott <knowledgejunkie@…> 17 years ago.
logrotate script for mythbackend

Download all attachments as: .zip

Change History (2)

Changed 17 years ago by Nick Morrott <knowledgejunkie@…>

Attachment: etc.logrotate.d.mythbackend added

logrotate script for mythbackend

comment:1 Changed 17 years ago by stuartm

Resolution: fixed
Status: newclosed

(In [13599]) Closes #3371. Adds a log rotate config for mythbackend.

Note: See TracTickets for help on using tickets.