I use logrotate on my RedHat system with: /var/log/clamd.log { missingok create 0640 clamav root prerotate /sbin/service clamd stop 2> /dev/null || true endscript postrotate sleep 5 /sbin/service clamd start 2> /dev/null || true endscript }
Seems to work fine. On Monday 02 February 2004 10:08 am, > Tomasz Papszun wrote: > > On Mon, 02 Feb 2004 at 7:43:28 -0600, Daniel J McDonald wrote: > > > > I was talking about that "_initially_" aspect. What happens later with > > old logfiles is out of clamd interest. > > That's not the problem. Problem is that kill -HUP doesn't affect clamd > at all. It doesn't release old lockfile. My logrotate script is: > > /var/log/clamav/clamd.log { > missingok > create 640 clamav clamav > postrotate > /bin/kill -HUP `cat /var/run/clamav/clamd.pid 2> /dev/null` 2> > /dev/null || true > endscript > } > > Problem is clamd won't release and re-open logfile. And same problem is > with freshclam. -- Paul Carpenter [EMAIL PROTECTED] DodgeNet, Inc. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users