[mythtv-users] trunk gentoo ebuilds and logrotate

freedenizen freedenizen at gmail.com
Thu Sep 22 22:51:25 UTC 2011


On Thu, Sep 22, 2011 at 3:38 PM, Bill Meek <keemllib at gmail.com> wrote:
<snip>
>> Ah ya, I actually had created a cronjob:
>> find /var/log/mythtv -mtime +7 -daystart -execdir rm '{}' \; 2>/dev/null
> ...
>
> No offense intended. I read the "many hundreds of log files" part and
> assumed you hadn't used that solution.

Actually when I posted I hadn't, but then just decided to do that in
the mean time cause it was a bit of a pain trying to locate the
correct log file.

> In any event,
>
> The 'find' and '-exec' stuff I added are gone and replaced (by wagnerrp)
> with his python script (line 79 needs another trailing ')'.)
>
>  os.unlink(os.path.join(self.path, self.filename)
>
> The script expects only the new MythTV log file name formats as in:
>
>  application.date.pid.log{.#}{.gz}
>
> and it aborts on file names like mythfrontend.log or my local files
> (like LocalShutdown.log etc.)
>
> I'm still working with it, but my python skills are fairly slim.
>
> Bill

Ya, I saw the commit, hadn't tried it out yet though, thanks for the
tips and assistance.


More information about the mythtv-users mailing list