Commit c22646d2a4f5fd50997cd95d89b35b27df65721f
1 parent
ae4ae2b2
Exists in
spb-stable
and in
3 other branches
Logrotate daily, keeping 90 days of old logs
Also remove the 'delaycompress' option which is not needed because we use 'copytruncate'.
Showing
1 changed file
with
4 additions
and
6 deletions
Show diff stats
lib/support/logrotate/gitlab
| ... | ... | @@ -2,21 +2,19 @@ |
| 2 | 2 | # based on: http://stackoverflow.com/a/4883967 |
| 3 | 3 | |
| 4 | 4 | /home/git/gitlab/log/*.log { |
| 5 | - weekly | |
| 5 | + daily | |
| 6 | 6 | missingok |
| 7 | - rotate 52 | |
| 7 | + rotate 90 | |
| 8 | 8 | compress |
| 9 | - delaycompress | |
| 10 | 9 | notifempty |
| 11 | 10 | copytruncate |
| 12 | 11 | } |
| 13 | 12 | |
| 14 | 13 | /home/git/gitlab-shell/gitlab-shell.log { |
| 15 | - weekly | |
| 14 | + daily | |
| 16 | 15 | missingok |
| 17 | - rotate 52 | |
| 16 | + rotate 90 | |
| 18 | 17 | compress |
| 19 | - delaycompress | |
| 20 | 18 | notifempty |
| 21 | 19 | copytruncate |
| 22 | 20 | } | ... | ... |