clamav-milter logrotate script fails (jaunty)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clamav (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Jaunty |
Fix Released
|
High
|
Unassigned |
Bug Description
Binary package hint: clamav-milter
A fresh install of clamav-milter (0.95.1+
root@prizm:/tmp# cat /etc/logrotate.
none {
rotate 12
weekly
compress
delaycompress
create 640 clamav adm
postrotate
/etc/
endscript
}
Unfortunately this file is very broken and just errors out whenever logrotate runs it:
root@prizm:/tmp# /etc/cron.
error: clamav-milter:1 unknown option 'none' -- ignoring line
error: clamav-milter:1 unexpected text
error: clamav-milter:10 unexpected }
error: found error in file clamav-milter, skipping
-------
root@prizm:/tmp# /etc/init.
* Usage: /etc/init.
TEST CASE:
manually run /etc/cron.
error: clamav-milter:1 unknown option 'none' -- ignoring line
error: clamav-milter:1 unexpected text
error: clamav-milter:10 unexpected }
error: found error in file clamav-milter, skipping
Install the updated package. Run /etc/cron.
Changed in clamav (Ubuntu Jaunty): | |
importance: | Undecided → High |
milestone: | none → jaunty-updates |
status: | New → In Progress |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
It seems that the default clamav-milter.conf has syslog enabled instead of a file, and the postinst script doesn't find the LogFile setting and thus the logfile name, so it puts 'none' in /etc/logrotate. d/clamav- milter. Steps to correct:
- uninstall clamav-milter (without purge) d/clamav- milter clamav- milter. conf like this:
- remove /etc/logrotate.
- edit /etc/clamav/
LogSyslog false clamav/ clamav- milter. log
LogFile /var/log/
- sudo apt-get install clamav-milter (the logrotate. d/clamav- milter file gets generated correctly) clamav/ clamav- milter. log exists d/clamav- milter' , should work without errors, and you should see the clamav-milter.log file rotated
- check the /var/log/
- run 'sudo /usr/sbin/logrotate /etc/logrotate.
It still gives an error about clamav-milter reload-log, not sure what should be there (I see only restart).