[mythtv-users] --logfile vs. --logpath
Craig Treleaven
ctreleaven at cogeco.ca
Fri May 18 11:59:45 UTC 2012
At 5:10 PM -0400 5/17/12, Michael T. Dean wrote:
>On 05/17/2012 03:23 PM, Richard Shaw wrote:
>>On Thu, May 17, 2012 at 2:08 PM, Raymond Wagner wrote:
>>>On 5/17/2012 14:06, Stephan Seitz wrote:
>>>>I'm really wondering who thought the change from logfile to logpath was
>>>>a good idea. While you now have logfiles according to the name of
>>>>process (e.g. mythbackend or mythpreviewgen), the names contain
>>>>cryptic" things like PID and date. How can you now configure any
>>>>logrotation program to rotate the right logfiles?
>>>
>>>Wildcards and manual postrotate definitions.
>>>
>>>http://www.mythtv.org/wiki/Logrotate_-_mythfrontend
>>>http://www.mythtv.org/wiki/Logrotate_-_mythbackend
>>What I'd really like to see is a sane logrotate
>>config for mythpreviewgen... :)
>
>http://www.mythtv.org/wiki/Category:Log_Rotation_Configuration_Files
>
I've been doing some testing with 0.25 so I've
never had the backend running more than a few
hours at a time. Correct me if I'm wrong, but
for mythpreviewgen, (and mythcommflag, and
mythfilldatabase, I think) the key is the
following lines:
lastaction
find /var/log/mythtv/old -name 'mythpreviewgen*' -type f -mtime +30 -delete
Each time one of these guys run, they create a
new log file. These logs don't need to be
"rotated"--just pruned periodically. Right? I
think I'm going to add that to my daily db backup
and optimization. For me, I think 7 days of
previewgens and commflags would be *lots*. Maybe
14 days of mfd.
Does the backend and frontend continue to write
to the same log file for as long as they are
running--potentially weeks or months?
Craig
More information about the mythtv-users
mailing list