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,21 +2,19 @@ | ||
| 2 | # based on: http://stackoverflow.com/a/4883967 | 2 | # based on: http://stackoverflow.com/a/4883967 |
| 3 | 3 | ||
| 4 | /home/git/gitlab/log/*.log { | 4 | /home/git/gitlab/log/*.log { |
| 5 | - weekly | 5 | + daily |
| 6 | missingok | 6 | missingok |
| 7 | - rotate 52 | 7 | + rotate 90 |
| 8 | compress | 8 | compress |
| 9 | - delaycompress | ||
| 10 | notifempty | 9 | notifempty |
| 11 | copytruncate | 10 | copytruncate |
| 12 | } | 11 | } |
| 13 | 12 | ||
| 14 | /home/git/gitlab-shell/gitlab-shell.log { | 13 | /home/git/gitlab-shell/gitlab-shell.log { |
| 15 | - weekly | 14 | + daily |
| 16 | missingok | 15 | missingok |
| 17 | - rotate 52 | 16 | + rotate 90 |
| 18 | compress | 17 | compress |
| 19 | - delaycompress | ||
| 20 | notifempty | 18 | notifempty |
| 21 | copytruncate | 19 | copytruncate |
| 22 | } | 20 | } |