[mythtv-users] Database filled up first partition

chris at cpr.homelinux.net chris at cpr.homelinux.net
Sat Sep 2 05:19:26 UTC 2006


On Sat, Sep 02, 2006 at 12:12:54AM -0400, Robert Tsai wrote:
> On Fri, Sep 01, 2006 at 05:46:51PM -0700, chris at cpr.homelinux.net wrote:
> > On Fri, Sep 01, 2006 at 09:05:42PM +0800, William Kenworthy wrote:
> > /var/log/mythtv/mythbackend.log {
> >   # Keep logs until they are 2 months old or the number of 
> >   # logs reaches 12.  If the log files stay small, the age will 
> >   # kick in first and you'll only have 8 log files.  If they 
> >   # get larger than 10Mb then you won't keep all 60 days.
> >   rotate 12
> >   maxage 60
> > }
> 
> Unless you regularly restart mythbackend, you'll need a
> "pkill -HUP mythbackend" somewhere in there ...

I assume the HUP signal tells Myth to close and reopen the log file?
Even without doing that, the 'copytruncate' option in logrotate handles
the issue of open handles.  I simply specified it in the "global" part
of the config file since it's used for both logs.



More information about the mythtv-users mailing list