On Thursday 11 March 2004 09:48 pm, Betsy Schwartz wrote: > When you say clamAV works with logrotate, what command are you issuing to > get clamav to start using the new file? What I'm seeing is that it doesn't > respond to SIGHUP but has to be killed and restarted to get it to let go of > the old filehandle > > > > Betsy Schwartz email: > [EMAIL PROTECTED] > Unix Systems Administrator,CRG voice: > 617-495-5947 Harvard Graduate School of Design fax: > 617-496-5866 > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click# # Rotate Clam AV daemon log file #
/var/log/clamav/clamd.log { missingok nocompress copytruncate # create 640 clamav clamav # postrotate # /bin/kill -HUP `cat /var/run/clamav/clamd.pid 2> /dev/null` 2> /dev/null || true # endscript } as you can see, the kill -HUP line is commented out. It's being rotated: -rw-r----- 1 mailscan mailscan 17895 Mar 12 06:11 clamd.log -rw-r----- 1 mailscan mailscan 25582 Mar 7 04:02 clamd.log.1 -rw-r----- 1 mailscan mailscan 29355 Feb 29 04:02 clamd.log.2 -rw-r--r-- 1 mailscan mailscan 16837 Mar 12 04:02 freshclam.log -rw-r--r-- 1 mailscan mailscan 9711 Mar 7 04:02 freshclam.log.1 -rw-r--r-- 1 mailscan mailscan 6607 Feb 29 04:02 freshclam.log.2 > _______________________________________________ > Clamav-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/clamav-users this is what's being run by logrotate: ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users