/var/log/clamd.log {
- olddir /var/log/archiv
- create 640 clamav clamav
- postrotate
- /bin/killall -HUP clamav
- endscript
+ create 640 clamav root
+ postrotate
+ /bin/killall -HUP clamd
+ endscript
}
-
-/var/log/clamav.log {
- olddir /var/log/archiv
- create 640 clamav clamav
- postrotate
- /bin/killall -HUP clamav
- endscript
+/var/log/freshclam.log {
+ create 640 clamav root
+ postrotate
+ /bin/killall -HUP freshclam 2>/dev/null || /sbin/service syslog-ng flush-logs >/dev/null
+ endscript
}