[ATrpms-users] log-rotate facility for mythtv

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


On 26/03/07, john bray <john at johnbray.name> wrote:
> On Mon, 2007-03-26 at 02:26 +0100, Nick Morrott wrote:
> > 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've been reading this discussion for a while.  i find myself a bit
> concerned about it.
>
> simplicity is almost always better.  all, i think, linux systems come
> with logrotate already.
>
> the m$ way would be to have every program do it's own log rotation.  and
> that's a pretty awful way to do it, IMHO.
>
> i don't understand why any program wouldn't just build itself into
> logrotate and do it the 'easy'/'official'/'normal' way to start with.
>
> having 50 different programs with their own logrotate code is the way of
> madness.

Maybe the users of those 50 different programs have different log
rotation needs? What I mentioned above (and what this thread concerts)
was a logrotate logfile-specific *config* file, not reimplementing
logrotate. If you read the logrotate manpage, you'll see this is how
things are done.

You can always specify logrotate defaults for all programs on the
system and use those for all programs, if you want to. If you have one
program general >100MBs data/day, and another generating <100kb/month,
you probably want different logrotate settings, no?

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