summaryrefslogtreecommitdiff
path: root/data/templates/logs/logrotate/vyos-rsyslog.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/logs/logrotate/vyos-rsyslog.tmpl')
-rw-r--r--data/templates/logs/logrotate/vyos-rsyslog.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/templates/logs/logrotate/vyos-rsyslog.tmpl b/data/templates/logs/logrotate/vyos-rsyslog.tmpl
index 3af1bfd8e..f2e4d2ab2 100644
--- a/data/templates/logs/logrotate/vyos-rsyslog.tmpl
+++ b/data/templates/logs/logrotate/vyos-rsyslog.tmpl
@@ -3,11 +3,11 @@
missingok
nomail
notifempty
- rotate {{ rotate|default('10') }}
- size {{ max_size|default('1') }}M
+ rotate {{ rotate }}
+ size {{ max_size }}M
postrotate
- # restart rsyslog service
- systemctl restart rsyslog.service
+ # inform rsyslog service about rotation
+ /usr/lib/rsyslog/rsyslog-rotate
endscript
}