diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-03-12 14:04:24 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-03-12 15:26:39 +0100 |
commit | c22646d2a4f5fd50997cd95d89b35b27df65721f (patch) | |
tree | 7c426fb37e2b553224ce8f36912800fb9c5dfc94 /lib | |
parent | ae4ae2b225ffa5883a45d1de4cc79bdc96550cdf (diff) | |
download | gitlab-ce-c22646d2a4f5fd50997cd95d89b35b27df65721f.tar.gz |
Logrotate daily, keeping 90 days of old logs
Also remove the 'delaycompress' option which is not needed because we
use 'copytruncate'.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/support/logrotate/gitlab | 10 |
1 files 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 } |