Hi!

I'm not subscribed to the list, so please Cc: me on replies.

When I change the update interval for clamav in etc/rc.conf from the
default "daily" to e.g. "hourly", mails get sent to root for each
freshclam call that doesn't find new updates, because the database
is up to date.

The problem is that freshclam yields an exit code 1 in this case.
Only exit codes of 40 and above are errors.

For the daily updates this is no problem, because logrotate happens
after freshclam in etc/rc.d/rc.clamav, so the exit code doesn't
matter.

My quick fix is to call 'true' after each freshclam call, but of
course real error handling might be nice.

(Last tested with clamav-0.88.5-2.20061018, but previous versions
show this behaviour, too)

Regards,
Thomas Arendsen Hein

-- 
Email: [EMAIL PROTECTED]
http://intevation.de/~thomas/
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to