summaryrefslogtreecommitdiff
path: root/data/templates/syslog/logrotate.j2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-01 20:38:04 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-01 20:38:04 +0200
commit780d4fe16cd8471ca4fd27ba43fea998ef0240f0 (patch)
tree8a0a29aec78d2475bbb13130f181a04da26d9dea /data/templates/syslog/logrotate.j2
parentb6a307424451b197d57265f17692ba2033a0ff7f (diff)
downloadvyos-1x-780d4fe16cd8471ca4fd27ba43fea998ef0240f0.tar.gz
vyos-1x-780d4fe16cd8471ca4fd27ba43fea998ef0240f0.zip
syslog: T4353: fix Jinja2 linting errors
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
+}
+