Re: Accepted mythtv 0.25-dmo2 (source all i386)

Página superior

Responder a este mensaje
Autor: Christian Marillat
Fecha:  
A: dmo-discussion
Asunto: Re: Accepted mythtv 0.25-dmo2 (source all i386)
Stephan Seitz <stse+debian@???> writes:

> Hi Christian!
>
> On Sun, May 13, 2012 at 09:26:14AM +0200, Christian Marillat wrote:
>>> If I change your line to „--logpath /var/log/mythtv”, the backend is
>>> logging again, but the filename isn’t mythbackend.log anymore (see the
>>> help text above), which breaks logrotate. In fact I don’t know how to
>>> change the logrotate configuration to cope with the new logfile names.
>>Separate log files are better (I think). Normally logrotate is able to
>>manage a rules like this :
>>
>>/var/log/mythtv/*.log
>>
>>What do you think ?
>
> This is the directory listing of my system:
>
> stse@osgiliath:~$ ls /var/log/mythtv/
> mythbackend.20120509182532.8836.log          mythmetadatalookup.20120510203004.13562.log  mythpreviewgen.20120510203004.13559.log
> mythbackend.20120510113042.7386.log          mythmetadatalookup.20120511181517.22412.log  mythpreviewgen.20120511154639.32404.log
> mythbackend.20120511110157.7458.log          mythmetadatalookup.20120511203021.30074.log  mythpreviewgen.20120511181501.22400.log
> mythbackend.20120512125437.7714.log          mythmetadatalookup.20120512203054.3010.log   mythpreviewgen.20120511203004.30061.log
> mythbackend.20120513122851.7475.log          mythpreviewgen.20120509190231.11187.log      mythpreviewgen.20120512203004.2997.log
> mythmetadatalookup.20120509203048.15297.log  mythpreviewgen.20120509203004.15181.log      mythpreviewgen.20120512205504.3556.log
> mythmetadatalookup.20120510181558.7302.log   mythpreviewgen.20120510181502.7119.log       mythpreviewgen.20120512205603.3578.log


Ugly.

> My system is switched off in the evening, so I get a new logfile every
> day. I don’t think that logrotate will know which files are the
> current ones and which are old. What do you think?


Then the best is to use syslog. I'll change that.

Christian