summaryrefslogtreecommitdiffstats
path: root/kvm_stat.logrotate
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2021-07-08 09:05:49 +0200
committerThorsten Leemhuis <fedora@leemhuis.info>2021-07-08 09:05:49 +0200
commit2615a1ce1163e2180780acab0157ccd8cf9404ab (patch)
tree3a8a87cacf96523f2c43203a997c8dac06c276ad /kvm_stat.logrotate
parent7fea8875b5dbb16f2254f3e796e58d1d4adc7272 (diff)
parentbb0aad375410a7dcc5d60d55b017ed8718bf2a52 (diff)
downloadkernel-2615a1ce1163e2180780acab0157ccd8cf9404ab.tar.gz
kernel-2615a1ce1163e2180780acab0157ccd8cf9404ab.tar.xz
kernel-2615a1ce1163e2180780acab0157ccd8cf9404ab.zip
Diffstat (limited to 'kvm_stat.logrotate')
-rw-r--r--kvm_stat.logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/kvm_stat.logrotate b/kvm_stat.logrotate
new file mode 100644
index 000000000..105e15e65
--- /dev/null
+++ b/kvm_stat.logrotate
@@ -0,0 +1,11 @@
+/var/log/kvm_stat.csv {
+ size 10M
+ missingok
+ compress
+ maxage 30
+ rotate 5
+ nodateext
+ postrotate
+ /usr/bin/systemctl try-restart kvm_stat.service
+ endscript
+}