summaryrefslogtreecommitdiff
path: root/data/templates/syslog/logrotate.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/syslog/logrotate.tmpl')
-rw-r--r--data/templates/syslog/logrotate.tmpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/data/templates/syslog/logrotate.tmpl b/data/templates/syslog/logrotate.tmpl
new file mode 100644
index 000000000..f758265e4
--- /dev/null
+++ b/data/templates/syslog/logrotate.tmpl
@@ -0,0 +1,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 %}