Sure, this is how we do it :
/var/log/clamav/clamd.log {
missingok
nocompress
create 640 clamav clamav
postrotate
/bin/kill -HUP `cat /var/run/clamav/clamd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
We run Freshclam as a daemon and do pretty much the same for it.
HTH --Ed
[EMAIL PROTECTED] wrote:
Anyone got logrotate working sensibly with clamd.log and freshclam.log? I can get it to rename the log files, but it seems that clamd and freshclam keep the file descriptor open. The new logs are appending to the .log.1 file rather than appending to the newly created .log files.
Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902 Hispanic Business Inc./HireDiversity.com Software Engineer perl -e"map{y/a-z/l-za-k/;print}shift" "Jjhi pcdiwtg Ptga wprztg," _______________________________________________ http://lurker.clamav.net/list/clamav-users.html
-- ______________________________________________________________ EAS*Ent.Net - World Class Web Hosting and Email Services www.easent.net
_______________________________________________ http://lurker.clamav.net/list/clamav-users.html