Brian C. Hill wrote:
> I SIGHUP clamd in order to roll the log. This worked in 0.65
> (the last version I used before I upgraded). It doesn't now. The
> daemon goes into some kind of loop. I think this is a bug.
>
> Is there a better way to do this?
SIGHUP works for me...
$ cat /etc/logrotate.d/clamav
/var/log/clamav/clamd.log {
missingok
nocompress
create 640 clamav defang
postrotate
/bin/kill -HUP `cat /var/run/clamav/clamd.pid 2> /dev/null` 2>
/dev/null || true
endscript
}
/var/log/clamav/freshclam.log {
missingok
nocompress
create 640 clamav defang
postrotate
/bin/kill -HUP `cat /var/run/clamav/freshclam.pid 2> /dev/null`
2> /dev/null || true
endscript
}
--
Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902
Hispanic Business Inc./HireDiversity.com Software Engineer
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html