Update to 2021-01-20 20:00

master
Daniel Berteaud 4 years ago
parent f07c920688
commit c721f86839
  1. 18
      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'] %} {% 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 }} {{ seafile_root_dir }}/logs/{{ log }}.log
{% endfor %} {% endfor %}
{% for log in ['seafile_slow_rpc','seafile_slow_storage'] %} {% 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 %} {% endfor %}
{ {
weekly daily
rotate 52 rotate 365
compress compress
missingok missingok
copytruncate copytruncate
su seafile seafile su seafile seafile
} }
{{ seafile_root_dir }}/logs/seaf-fuse.log
{
daily
rotate 365
compress
missingok
copytruncate
}

Loading…
Cancel
Save