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