diff options
Diffstat (limited to 'clamav/build/logrotate.clamav')
-rw-r--r-- | clamav/build/logrotate.clamav | 14 |
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 +} |