A real newbee question !
clamd runs for about 2-3 minutes and takes a lot pf CPU time.
I am on a LOCAL VM testing Jitsi and I have to reboot often.
How can I disable
clamd until I finish debugging Jitsi ?
Do not recall if the service is listed and manageable from the Services section on the server-manger. From command line I guess it is:
systemctl stop clamd
systemctl disable clamd
Thank you for your reply.
# systemctl stop clamd
Failed to stop clamd.service: Unit clamd.service not loaded.
At last, I found something: https://docs.iredmail.org/completely.disable.amavisd.clamav.spamassassin.html.
# systemctl disable --now clamd@amavisd
# yum remove clamav clamav-lib
Résumé de la transaction
Supprimer 2 Paquets (+7 Paquets en dépendance)
Taille d'installation : 12 M
clamav.x86_64 0:0.103.2-1.el7 clamav-lib.x86_64 0:0.103.2-1.el7
Dépendances supprimées :
No more clamd and now booting is much faster.
To re-install, just install back
Please use the following variant to mark a topic as solved:
clamd is used by nethserver-mail-filter, nethserver-clamscan, nethserver-squid … , when you update the database it takes a long time
Thank you for the clarification that it was the update that was the trouble and not a scan.
Instead of restoring the previous snapshot (for which
clamd was not up to date), I should have let it go for the update, take a new snapshot, boot the new snapshot and it would not have updated again.
Indeed, it is a pity, nightmare when I test something on my VM with nethserver-mail-filter, at boot time the VM is so slow, until I kill clamd
Something to know
Even with a new snapshot, clamd wants to update…
what version of clamd is runing : for rspamd, squid ???
# rpm -qa | grep rspamd
# rpm -qa | grep squid
# rpm -qa | grep nethserver-squid
# rpm -qa | grep spamd
Thank you for your support.
systemctl disable email@example.com
systemctl stop firstname.lastname@example.org
# systemctl disable email@example.com
# systemctl stop firstname.lastname@example.org
After a reboot: from 25% to 78% CPU for
But if I do those commands right after the
clamd is no more in the picture.
So, your solution is working.
I’ll do like my teacher used to at my primary school: stick a little angel and a star beside you name on my list of “The Greatest”.