Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 293734

Summary: app-antivirus/clamav logrotate script should rotate milter logs as well.
Product: Gentoo Linux Reporter: Philippe Chaintreuil <gentoo_bugs_peep>
Component: Current packagesAssignee: Antivirus Team <antivirus>
Status: RESOLVED OBSOLETE    
Severity: normal CC: net-mail+disabled
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Philippe Chaintreuil 2009-11-19 15:25:01 UTC
If the milter use flag is enabled, we should probably rotate the milter logs as well.  I'll assume a simple addition of:

-----------------------------------------------------------------------
/var/log/clamav/clamav-milter.log {
	missingok
	postrotate
		/etc/init.d/clamd logfix
		/bin/kill -HUP `cat /var/run/clamav/clamav-milter.pid 2> /dev/null` 2>/dev/null || true
	endscript
}
-----------------------------------------------------------------------

Would fix it.
Comment 1 Philippe Chaintreuil 2009-11-19 15:25:32 UTC
I guess the logfix() function in the init script should fix the milter log as well.
Comment 2 Philippe Chaintreuil 2013-03-27 18:15:54 UTC
Marking this obsolete, as logrotate is no longer supported by the ebuild because clamav does its own log rotation.