[Ovirt-devel] [PATCH node] Fixes log rotation.

Darryl L. Pierce dpierce at redhat.com
Mon Feb 23 18:45:29 UTC 2009


-Removes the "=" in the size command.
-Rotates after 3 logs.
-Adds compression support, but delays it for the first log.

Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
 logrotate/ovirt-logrotate.conf |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/logrotate/ovirt-logrotate.conf b/logrotate/ovirt-logrotate.conf
index da4beee..f1de67a 100644
--- a/logrotate/ovirt-logrotate.conf
+++ b/logrotate/ovirt-logrotate.conf
@@ -1,11 +1,8 @@
-/var/log/*.log {
-    rotate 0
+/var/log/ovirt*.log /var/log/messages {
+    rotate 3
+    compress
+    delaycompress
     missingok
-    size=1024k
-}
-
-/var/log/messages {
-    rotate 0
-    missingok
-    size=1024k
+    size 1M
+    create
 }
-- 
1.6.0.6




More information about the ovirt-devel mailing list