1. clamd.log might not exist if clamd was not ever running, assure processing,
2. the log file is handled by fleshclam process itself or syslog, not clamd
- o not override system-wide olddir
-/var/log/clamd.log /var/log/freshclam.log {
- olddir /var/log/archive
- create 640 clamav root
- sharedscripts
- postrotate
- /bin/killall -HUP clamd
- endscript
+/var/log/clamd.log {
+ create 640 clamav root
+ postrotate
+ /bin/killall -HUP clamd
+ endscript
+}
+/var/log/freshclam.log {
+ create 640 clamav root
+ postrotate
+ /bin/killall -HUP freshclam || /sbin/service syslog-ng flush-logs >/dev/null
+ endscript
}