From c22646d2a4f5fd50997cd95d89b35b27df65721f Mon Sep 17 00:00:00 2001
From: Jacob Vosmaer <contact@jacobvosmaer.nl>
Date: Wed, 12 Mar 2014 14:04:24 +0100
Subject: [PATCH] Logrotate daily, keeping 90 days of old logs

Also remove the 'delaycompress' option which is not needed because we
use 'copytruncate'.
---
 lib/support/logrotate/gitlab | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/lib/support/logrotate/gitlab b/lib/support/logrotate/gitlab
index df9398d0795..d9b07b61ec3 100644
--- a/lib/support/logrotate/gitlab
+++ b/lib/support/logrotate/gitlab
@@ -2,21 +2,19 @@
 # based on: http://stackoverflow.com/a/4883967
 
 /home/git/gitlab/log/*.log {
-    weekly
+    daily
     missingok
-    rotate 52
+    rotate 90
     compress
-    delaycompress
     notifempty
     copytruncate
 }
 
 /home/git/gitlab-shell/gitlab-shell.log {
-    weekly
+    daily
     missingok
-    rotate 52
+    rotate 90
     compress
-    delaycompress
     notifempty
     copytruncate
 }
-- 
GitLab