[ATrpms-users] log-rotate facility for mythtv

Nick Morrott knowledgejunkie at gmail.com
Mon Mar 26 03:26:05 CEST 2007


On 25/03/07, Axel Thimm <Axel.Thimm at atrpms.net> wrote:
> On Sun, Mar 25, 2007 at 01:31:20PM -0400, Jeffrey J. Kosowsky wrote:
> > 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?
>
> The rpms already have this for mythbackend.log since about mid-2003 (?).

Axel,

I'm in the process tonight of writing a simple patch for the
mythbackend init scripts in MythTV SVN to add pidfile support and a
sample logrotate script.

I know from using the atrpms.net builds of MythTV in the past that
they include logrotate support and so I had a look at the logrotate
script in the mythbackend rpm. Is the script allowed to include both a
time directive (weekly) and a size directive (10M) in the same block?
I'm wondering if this is the reason that Paulo's scripts have not
rotated - perhaps the last directive (the size one) is overriding the
weekly directive, causing logrotate to wait until the file reaches
10MB before it is rotated?

Cheers,
Nick
-- 
MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin



More information about the atrpms-users mailing list