Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log rotate 設定を加える #13

Closed
ayapapa opened this issue Apr 25, 2015 · 0 comments
Closed

log rotate 設定を加える #13

ayapapa opened this issue Apr 25, 2015 · 0 comments

Comments

@ayapapa
Copy link
Owner

ayapapa commented Apr 25, 2015

手動設定して現在使っているもの:

view /etc/logrotate.d/redmine
/opt/alminium/log/*.log {
weekly # 週一回rotateを実行する
missingok # ファイルが存在しなくてもエラーにならない
notifempty # logファイルが空の時はrotateしない
copytruncate # ログを別名でコピーした後、元のファイルの内容を空にする
compress # 古いログを圧縮して保存する
delaycompress # 次のrotateの時にログ圧縮する
}

ayapapa added a commit that referenced this issue May 16, 2015
ayapapa added a commit that referenced this issue May 16, 2015
@ayapapa ayapapa closed this as completed May 16, 2015
ayapapa added a commit that referenced this issue May 20, 2015
ayapapa added a commit that referenced this issue May 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant