Ticket #2596 (closed defect: worksforme)
Error in clamav-daemon logrotate's conf
| Reported by: | anonymous | Owned by: | jamor@… |
|---|---|---|---|
| Milestone: | Component: | antivirus | |
| Severity: | normal | Keywords: | clamav logrotate |
| Cc: |
Description
I receive an email from logrotate's cron:
/etc/cron.daily/logrotate: error: clamav-daemon:1 lines must begin with a keyword or a filename (possibly in double quotes) error: clamav-daemon:10 unexpected } error: found error in file clamav-daemon, skipping
Contents of /etc/logrotate.d/clamav-daemon:
0 {
rotate 12
weekly
compress
delaycompress
create 640 root adm
postrotate
/etc/init.d/clamav-daemon reload-log > /dev/null
endscript
}
The "0" in the file should be "/var/log/clamav/clamav.log" (I guess). Currently, that file contains entries since Dec 6th till today Dec 14th, which is more than a week and it has clearly not been rotated.
Attachments
Change History
comment:1 Changed 3 years ago by jacalvo@…
- Status changed from new to closed
- Resolution set to worksforme
comment:3 follow-up: ↓ 4 Changed 2 years ago by anonymous
Hello,
I had looked in the Zentyal code and this file is not modified at all. To try to clear things could you provide this information?
- output of "apt-cache policy clamav-daemon"
- output of "dpkg -S /var/log/clamav/clamav.log'
Thanks
comment:4 in reply to: ↑ 3 Changed 2 years ago by anonymous
Replying to anonymous:
Hello,
I had looked in the Zentyal code and this file is not modified at all. To try to clear things could you provide this information?
- output of "apt-cache policy clamav-daemon"
clamav-daemon:
Installed: 0.96.5+dfsg-1ubuntu1.10.04.1
Candidate: 0.96.5+dfsg-1ubuntu1.10.04.1
Version table:
*** 0.96.5+dfsg-1ubuntu1.10.04.1 0
500 http://si.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
100 /var/lib/dpkg/status
0.96.3+dfsg-2ubuntu1.0.10.04.2 0
500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
0.96+dfsg-2ubuntu1 0
500 http://si.archive.ubuntu.com/ubuntu/ lucid/main Packages
- output of "dpkg -S /var/log/clamav/clamav.log'
dpkg: /var/log/clamav/clamav.log not found.
comment:5 Changed 2 years ago by jamor@…
This is a bug in upstream: https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/799623
I've just tried to reproduce it and I have "var/log/clamav/clamav.log" on that file. I don't know why you have a 0, but Zentyal does not modify that file at all...