Logrotate daily, keeping 90 days of old logs
Also remove the 'delaycompress' option which is not needed because we use 'copytruncate'.
This commit is contained in:
parent
ae4ae2b225
commit
c22646d2a4
1 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue