diff options
author | 2012-07-12 02:34:03 +0000 | |
---|---|---|
committer | 2012-07-12 02:34:03 +0000 | |
commit | 7dc4aebd25144ce86abd44471024fdf0621a317b (patch) | |
tree | 62e359d42703151e2b38ae7d7722925e4f2008e5 /media-tv/mythtv/files | |
parent | Stable ppc/ppc64 (diff) | |
download | gentoo-2-7dc4aebd25144ce86abd44471024fdf0621a317b.tar.gz gentoo-2-7dc4aebd25144ce86abd44471024fdf0621a317b.tar.bz2 gentoo-2-7dc4aebd25144ce86abd44471024fdf0621a317b.zip |
Add new logrotate file but I'm not convinced this will actually work due to how upstream does their log files now.
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'media-tv/mythtv/files')
-rw-r--r-- | media-tv/mythtv/files/mythtv.logrotate.d-r2 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/media-tv/mythtv/files/mythtv.logrotate.d-r2 b/media-tv/mythtv/files/mythtv.logrotate.d-r2 new file mode 100644 index 000000000000..190280607893 --- /dev/null +++ b/media-tv/mythtv/files/mythtv.logrotate.d-r2 @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/files/mythtv.logrotate.d-r2,v 1.1 2012/07/12 02:34:03 cardoe Exp $ + +/var/log/mythtv/mythbackend.*.log { + rotate 5 + weekly + create 660 mythtv video + notifempty + sharedscripts + missingok + olddir /var/log/mythtv/old + postrotate + [ -f "/var/run/mythbackend.pid" ] && \ + /bin/kill -HUP `cat /var/run/mythbackend.pid` + endscript +} + +/var/log/mythtv/mythfrontend.*.log { + rotate 5 + weekly + create 660 mythtv video + notifempty + sharedscripts + missingok + olddir /var/log/mythtv/old + postrotate + killall -HUP mythfrontend + find /var/log/mythtv/old -name 'mythfrontend*' -type f -mtime +30 -delete + endscript +} + +/var/log/mythtv/mythpreviewgen.*.log { + rotate 5 + weekly + create 660 mythtv video + notifempty + sharedscripts + missingok + olddir /var/log/mythtv/old + postrotate + find /var/log/mythtv/old -name 'mythpreviwgen*' -type f -mtime +30 -delete + endscript +} |