summaryrefslogtreecommitdiff
path: root/system/clamav/logrotate.clamav
diff options
context:
space:
mode:
Diffstat (limited to 'system/clamav/logrotate.clamav')
-rw-r--r--system/clamav/logrotate.clamav11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/clamav/logrotate.clamav b/system/clamav/logrotate.clamav
new file mode 100644
index 0000000000..8154a8ba4e
--- /dev/null
+++ b/system/clamav/logrotate.clamav
@@ -0,0 +1,11 @@
+/var/log/clamav/*.log {
+ weekly
+ rotate 5
+ compress
+ delaycompress
+ notifempty
+ missingok
+ postrotate
+ /bin/kill -HUP `cat /var/run/clamav/clamd.pid 2>/dev/null` 2>/dev/null || true
+ endscript
+}