CentOS – ClamAV issues

Clamd and freshclam will use 100% of core cpu process.


Edit file: /usr/lib/systemd/system/clamd@.service

Description = clamd scanner (%i) daemon
Documentation=man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/
# Check for database existence
# ConditionPathExistsGlob=@DBDIR@/main.{c[vl]d,inc}
# ConditionPathExistsGlob=@DBDIR@/daily.{c[vl]d,inc}
After = syslog.target nss-lookup.target network.target

Type = forking
ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf
Restart = on-failure
TimeoutSec = 180

Adding TimeoutSec (180 seconds were enough for me)

Run this commands:

systemctl daemon-reload
systemctl start clamd@amavisd