Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293734 - app-antivirus/clamav logrotate script should rotate milter logs as well.
Summary: app-antivirus/clamav logrotate script should rotate milter logs as well.
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-19 15:25 UTC by Philippe Chaintreuil
Modified: 2013-03-27 18:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.