Author Topic: why can not I configure ClamAV always stop?  (Read 6405 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
why can not I configure ClamAV always stop?
« on: June 22, 2020, 10:02:34 AM »
My problem is that the virtual machine with ClamAV is set to 100% and the web pages are not going well, I have to work without ClamAV and I have tried the method both from the control panel to stop ClamAV and to set a task that directly stops the clamd service, every hour, and no method works, how do I solve the problem?

Offline
*****
Re: why can not I configure ClamAV always stop?
« Reply #1 on: June 23, 2020, 10:06:24 AM »
you can run this script and wait
sh /scripts/clamd_fix_100_cpu_usage

Offline
*
Re: why can not I configure ClamAV always stop?
« Reply #2 on: June 24, 2020, 09:40:35 AM »
thanks but it does not fix the problem, I tried to remove the service from the system startup and as I saw that there was no way then I tried every hour to do a systemctl stop clamd, but it does not work either

Offline
*
Re: why can not I configure ClamAV always stop?
« Reply #3 on: July 07, 2020, 09:29:42 AM »
Hello I've tried your solution but I've seen that solution is to disable clamd which is clamav, below I have put the command:
[root@mail ~]# systemctl disable clamd
You have new mail in /var/spool/mail/root
[root@mail ~]# systemctl status clamd
● clamd.service - clamd scanner () daemon
   Loaded: loaded (/usr/lib/systemd/system/clamd.service; disabled; vendor preset: disabled)
   Active: inactive (dead) since Tue 2020-07-07 09:08:20 UTC; 18min ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           https://www.clamav.net/documents/
 Main PID: 9004 (code=killed, signal=TERM)

Jul 07 09:08:19 mail.liberalaconciencia.com systemd[1]: clamd.service holdoff time over, scheduling restart.
Jul 07 09:08:19 mail.liberalaconciencia.com systemd[1]: Stopped clamd scanner () daemon.
Jul 07 09:08:19 mail.liberalaconciencia.com systemd[1]: Started clamd scanner () daemon.
Jul 07 09:08:20 mail.liberalaconciencia.com systemd[1]: Stopping clamd scanner () daemon...
Jul 07 09:08:20 mail.liberalaconciencia.com systemd[1]: Stopped clamd scanner () daemon.