summaryrefslogtreecommitdiff
path: root/debian/vyos-1x.install
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2021-11-09 18:46:10 +0200
committerzsdc <taras@vyos.io>2021-11-09 19:12:35 +0200
commit14e3b26ff5ffce9ae19050645b0efc6c4725880a (patch)
tree882cdf99c1c0b280f55f55111ff6ac4101976efd /debian/vyos-1x.install
parent73be449b1cd09f3ca86400753630fb4804fbeca7 (diff)
downloadvyos-1x-14e3b26ff5ffce9ae19050645b0efc6c4725880a.tar.gz
vyos-1x-14e3b26ff5ffce9ae19050645b0efc6c4725880a.zip
atop: T3774: Atop log file rotation fix
The systemd unit for atop service is changed, so the log file name and location will be always the same. It also adds the logrotate configuration to conditionally rotate a log file. Hardcoded values: - maximum log file size: 10 MB - maximum count of files: 10 These values can be easily changed within the `/etc/logrotate.d/vyos-atop`, no additional configuration is required. Rotation will be done hourly, if necessary, according to `/etc/cron.hourly/vyos-logrotate-hourly`. This change has two benefits: - rotation strategy control can be done via logrotate, and can be exposed to CLI now; - the total size of all logs is now controlled more aggressively, so the chance to get a situation when atop logs took all the space on a drive is significantly lower. Also, if this will be necessary, rotation may be done even each minute what reduces risks related to logs size even more.
Diffstat (limited to 'debian/vyos-1x.install')
-rw-r--r--debian/vyos-1x.install1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/vyos-1x.install b/debian/vyos-1x.install
index d332e0d36..10426260a 100644
--- a/debian/vyos-1x.install
+++ b/debian/vyos-1x.install
@@ -1,6 +1,7 @@
etc/cron.hourly
etc/dhcp
etc/ipsec.d
+etc/logrotate.d
etc/netplug
etc/opennhrp
etc/ppp