diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-05-01 20:43:45 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-05-01 20:47:04 +0200 |
commit | f38ce741c2852e4eaeeaa23736960d9a717b600f (patch) | |
tree | cec4d823a93611c3df0f073c341ea0a18754dc33 /data/templates/logs/logrotate/vyos-rsyslog.j2 | |
parent | 01bdf2dfdb09bf9dd7ca4e7b49def302b2cd7c29 (diff) | |
download | vyos-1x-f38ce741c2852e4eaeeaa23736960d9a717b600f.tar.gz vyos-1x-f38ce741c2852e4eaeeaa23736960d9a717b600f.zip |
system-logs: T4353: fix Jinja2 linting errors
Diffstat (limited to 'data/templates/logs/logrotate/vyos-rsyslog.j2')
-rw-r--r-- | data/templates/logs/logrotate/vyos-rsyslog.j2 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/data/templates/logs/logrotate/vyos-rsyslog.j2 b/data/templates/logs/logrotate/vyos-rsyslog.j2 new file mode 100644 index 000000000..f2e4d2ab2 --- /dev/null +++ b/data/templates/logs/logrotate/vyos-rsyslog.j2 @@ -0,0 +1,13 @@ +/var/log/messages { + create + missingok + nomail + notifempty + rotate {{ rotate }} + size {{ max_size }}M + postrotate + # inform rsyslog service about rotation + /usr/lib/rsyslog/rsyslog-rotate + endscript +} + |