summaryrefslogtreecommitdiff
path: root/data/templates/logs/logrotate/vyos-atop.tmpl
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2021-12-17 16:41:50 +0200
committerzsdc <taras@vyos.io>2021-12-17 16:41:50 +0200
commit86bbab75ae414f19305970e2aa8aaeb05e6990ae (patch)
tree377b12e8f2672cf9ca9314bb8d7b261347c5f320 /data/templates/logs/logrotate/vyos-atop.tmpl
parent945ab070b72ebd9f5ccfe0052ed138a93b83b297 (diff)
downloadvyos-1x-86bbab75ae414f19305970e2aa8aaeb05e6990ae.tar.gz
vyos-1x-86bbab75ae414f19305970e2aa8aaeb05e6990ae.zip
logs: T3774: Optimization for logrotate configs
* Added proper handling of default values from CLI. * Replaced rsyslog restart postrotate action to native `rsyslog-rotate` script. * Removed unnecessary checks for `None` instead `dict` - with default values the situation becomes impossible. * Fixed default value from 10 to 1 in the rsyslog CLI.
Diffstat (limited to 'data/templates/logs/logrotate/vyos-atop.tmpl')
-rw-r--r--data/templates/logs/logrotate/vyos-atop.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/logs/logrotate/vyos-atop.tmpl b/data/templates/logs/logrotate/vyos-atop.tmpl
index 444d1da36..2d078f379 100644
--- a/data/templates/logs/logrotate/vyos-atop.tmpl
+++ b/data/templates/logs/logrotate/vyos-atop.tmpl
@@ -2,12 +2,12 @@
daily
dateext
dateformat _%Y-%m-%d_%H-%M-%S
- maxsize {{ max_size|default('10') }}M
+ maxsize {{ max_size }}M
missingok
nocompress
nocreate
nomail
- rotate {{ rotate|default('10') }}
+ rotate {{ rotate }}
prerotate
# stop the service
systemctl stop atop.service