From 4ab5ad542568a73d0422106cbd50809f102df187 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Oct 06 2009 09:45:04 +0000 Subject: * Tue Oct 6 2009 Mark McLoughlin - 0.7.1-9 - Change logrotate config to weekly (#526769) --- diff --git a/libvirt-change-logrotate-config-to-weekly.patch b/libvirt-change-logrotate-config-to-weekly.patch new file mode 100644 index 0000000..4e80077 --- /dev/null +++ b/libvirt-change-logrotate-config-to-weekly.patch @@ -0,0 +1,34 @@ +From bcd4180124afa20580d720912e2179b3a2f9295a Mon Sep 17 00:00:00 2001 +From: Daniel Veillard +Date: Mon, 5 Oct 2009 17:03:14 +0200 +Subject: [PATCH] 526769 change logrotate config default to weekly + +* daemon/libvirtd.logrotate.in: change to weekly rotation of logs, + keep a month worth of data and also extend to cover LXC and UML + domain logs + +(cherry picked from commit 529325bbdd050af89bda5a5c1a01b5553c49a57e) + +Fedora-patch: libvirt-change-logrotate-config-to-weekly.patch +--- + qemud/libvirtd.logrotate.in | 6 +++--- + 1 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/qemud/libvirtd.logrotate.in b/qemud/libvirtd.logrotate.in +index 9b42630..093651c 100644 +--- a/qemud/libvirtd.logrotate.in ++++ b/qemud/libvirtd.logrotate.in +@@ -1,7 +1,7 @@ +-@localstatedir@/log/libvirt/qemu/*.log { +- daily ++@localstatedir@/log/libvirt/qemu/*.log @localstatedir@/log/libvirt/uml/*.log @localstatedir@/log/libvirt/lxc/*.log { ++ weekly + missingok +- rotate 7 ++ rotate 4 + compress + delaycompress + copytruncate +-- +1.6.2.5 + diff --git a/libvirt.spec b/libvirt.spec index bbdb081..0282741 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -151,7 +151,7 @@ Summary: Library providing a simple API virtualization Name: libvirt Version: 0.7.1 -Release: 8%{?dist}%{?extra_release} +Release: 9%{?dist}%{?extra_release} License: LGPLv2+ Group: Development/Libraries Source: http://libvirt.org/sources/libvirt-%{version}.tar.gz @@ -175,6 +175,9 @@ Patch06: libvirt-disable-audio-backend.patch # Re-label qcow2 backing files (#497131) Patch07: libvirt-svirt-relabel-qcow2-backing-files.patch +# Change logrotate config to weekly (#526769) +Patch08: libvirt-change-logrotate-config-to-weekly.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root URL: http://libvirt.org/ BuildRequires: python-devel @@ -394,6 +397,7 @@ of recent versions of Linux (and other OSes). %patch05 -p1 %patch06 -p1 %patch07 -p1 +%patch08 -p1 %build %if ! %{with_xen} @@ -784,6 +788,9 @@ fi %endif %changelog +* Tue Oct 6 2009 Mark McLoughlin - 0.7.1-9 +- Change logrotate config to weekly (#526769) + * Thu Oct 1 2009 Mark McLoughlin - 0.7.1-8 - Disable sound backend, even when selinux is disabled (#524499) - Re-label qcow2 backing files (#497131)