[mythtv-users] trunk gentoo ebuilds and logrotate

Raymond Wagner raymond at wagnerrp.com
Fri Sep 23 00:13:50 UTC 2011

On 9/22/2011 18:38, Bill Meek wrote:
> 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)

Whoops.  I tested the logic with the print statement commented out 
directly above.  I admit, I never actually ran the script completely, 
allowing it to delete.

> 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.)

There is now a regular expression filter that it simply ignores those 
files that don't match the expected pattern.

As for the ebuilds, I'm putting together an updated version tonight that 
will optionally set up log rotation, and a cronjob to run this script.

More information about the mythtv-users mailing list