summaryrefslogtreecommitdiff
path: root/data/templates/syslog/logrotate.tmpl
blob: f758265e4ba9c46e0954dd76f8a66ef69623444d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{% for file in files %}
{{files[file]['log-file']}} {
  missingok
  notifempty
  create
  rotate {{files[file]['max-files']}}
  size={{files[file]['max-size']//1024}}k
  postrotate
    invoke-rc.d rsyslog rotate > /dev/null
  endscript
}
{% endfor %}