Yes -- it only rotates when both conditions are true. You don't really need a script. Just look at the existing /etc/logrotate.d/mythbackend file and delete the 'size' line if you want it to just rotate every week independent of size.
Nick Morrott wrote at about 02:26:05 +0100 on Monday, March 26, 2007: > On 25/03/07, Axel Thimm <[EMAIL PROTECTED]> 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 > > _______________________________________________ > atrpms-users mailing list > [email protected] > http://lists.atrpms.net/mailman/listinfo/atrpms-users _______________________________________________ atrpms-users mailing list [email protected] http://lists.atrpms.net/mailman/listinfo/atrpms-users
