How to stop clamd

Hi @dnutan,

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
...
Supprimé :
  clamav.x86_64 0:0.103.2-1.el7              clamav-lib.x86_64 0:0.103.2-1.el7

Dépendances supprimées :
  clamav-unofficial-sigs.noarch 0:7.2.4-1.el7
  clamav-update.x86_64 0:0.103.2-1.el7
  clamd.x86_64 0:0.103.2-1.el7
  nethserver-antivirus.noarch 0:1.5.1-1.ns7
  nethserver-clamscan.noarch 0:1.0.3-1.ns7.sdl
  nethserver-mail-filter.noarch 0:2.30.0-1.ns7
  nethserver-mail-quarantine.noarch 0:2.30.0-1.ns7

Terminé !
#

# reboot

No more clamd and now booting is much faster.

To re-install, just install back clamav and clamav-lib.

Michel-André

1 Like