summaryrefslogtreecommitdiffstats
path: root/clamav
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-08-04 22:05:28 +0000
committer Eric Hameleers <alien@slackware.com>2017-08-04 22:05:28 +0000
commitaecc8d14fb962db1dbda0631420e88916b69f36c (patch)
tree8df51f925c5253c634b53dd98616170391753135 /clamav
parentea393f5d35a65a0f0ea1575edbe15e49fa44f657 (diff)
downloadasb-aecc8d14fb962db1dbda0631420e88916b69f36c.tar.gz
asb-aecc8d14fb962db1dbda0631420e88916b69f36c.tar.xz
Initial revision
Diffstat (limited to 'clamav')
-rw-r--r--clamav/build/logrotate.clamav14
1 files changed, 14 insertions, 0 deletions
diff --git a/clamav/build/logrotate.clamav b/clamav/build/logrotate.clamav
new file mode 100644
index 00000000..a858c87a
--- /dev/null
+++ b/clamav/build/logrotate.clamav
@@ -0,0 +1,14 @@
+/var/log/clamd.log /var/log/freshclam.log {
+ su clamav clamav
+ weekly
+ rotate 5
+ compress
+ delaycompress
+ notifempty
+ missingok
+ create 0660 clamav clamav
+ postrotate
+ /bin/kill -HUP `cat /var/run/clamav/clamd.pid 2>/dev/null` 2>/dev/null || true
+ /bin/kill -HUP `cat /var/run/clamav/freshclam.pid 2>/dev/null` 2>/dev/null || true
+ endscript
+}