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