From c721f868393eab6fc3a16f164eb392e00e28c43b Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 20 Jan 2021 20:00:05 +0100 Subject: [PATCH] Update to 2021-01-20 20:00 --- roles/seafile/templates/logrotate.conf.j2 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/roles/seafile/templates/logrotate.conf.j2 b/roles/seafile/templates/logrotate.conf.j2 index 2bbdda9..13d03a6 100644 --- a/roles/seafile/templates/logrotate.conf.j2 +++ b/roles/seafile/templates/logrotate.conf.j2 @@ -1,14 +1,22 @@ -{% for log in ['ccnet','controller','elasticsearch_deprecation','elasticsearch_index_indexing_slowlog','elasticsearch_index_search_slowlog','file_updates_sender','gunicorn_error','index','seafdav','seaf-fuse','seafile','seahub_email_sender','virus_scan'] %} -{{ seafile_root_dir }}/logs/{{ log }} +{% for log in ['ccnet','controller','elasticsearch_deprecation','elasticsearch_index_indexing_slowlog','elasticsearch_index_search_slowlog','file_updates_sender','gunicorn_error','index','seafdav','seafile','seahub_email_sender','virus_scan'] %} +{{ seafile_root_dir }}/logs/{{ log }}.log {% endfor %} {% for log in ['seafile_slow_rpc','seafile_slow_storage'] %} -{{ seafile_root_dir }}/logs/slow_logs/{{ log }} +{{ seafile_root_dir }}/logs/slow_logs/{{ log }}.log {% endfor %} { - weekly - rotate 52 + daily + rotate 365 compress missingok copytruncate su seafile seafile } +{{ seafile_root_dir }}/logs/seaf-fuse.log +{ + daily + rotate 365 + compress + missingok + copytruncate +}