d4a96a421b
The extant "logrotate_daily" varaible doesn't really do anything and isn't used. Modify this to be able to set a range of rotation periods or a size. Update mirror rsync mirrors to rotate weekly, as often releases run overnight and it's a pain to reconstruct. Change-Id: I121dc5f4fe7f226b66d18b9ec39e7e3839be4d40
24 lines
451 B
Django/Jinja
24 lines
451 B
Django/Jinja
{{ logrotate_file_name }} {
|
|
{% if logrotate_compress %}
|
|
compress
|
|
{% endif %}
|
|
{% if logrotate_copytruncate %}
|
|
copytruncate
|
|
{% endif %}
|
|
{% if logrotate_delaycompress %}
|
|
delaycompress
|
|
{% endif %}
|
|
{% if logrotate_missingok %}
|
|
missingok
|
|
{% endif %}
|
|
rotate {{ logrotate_rotate }}
|
|
{% if logrotate_frequency != "size" %}
|
|
{{ logrotate_frequency }}
|
|
{% else %}
|
|
size {{ logrotate_size }}
|
|
{% endif %}
|
|
{% if logrotate_notifempty %}
|
|
notifempty
|
|
{% endif %}
|
|
}
|