Celebrate Our 22nd Anniversary with Huge Savings! Up to 70% Off

How to Stop and Disable ClamAV Service from CentOS?

We all know that the ClamAV scanner is heavy on CPU-memory resources and should not be used in low-memory Linux systems. If you want to disable the ClamAV scanner from your CentOS system, refer to the following instructions.

Disable ClamAV Service

The first step is to stop the ClamAV scanner by applying the following command – 

# service clamd stop

The chkconfig script enables and disables the services in Red Hat-based Linux distributions.
Run the following commands to disable the ClamAV scanner at the system startup – 

# chkconfig clamd off 

# chkconfig clamd --del 

Once ClamAV is disabled, you may have to verify its status.
Execute the following command to check whether ClamAV is disabled at the boot level. If ClamAV is disabled successfully, the following command won't show any results – 

#chkconfig --list | grep clam

After applying the above changes, the system will boot next time without ClamAV service, saving the system resource and making the server faster.


Disable Other Unwanted Services

You can execute the command shown in step #2 to disable other unwanted packages and applications from your CentOS system.
All you've to do is, execute the command given below to list all services and determine the service name you want to disable. The following command will display all services and their status at boot on each run level –   

# chkconfig --list

Once the service name is determined, execute the command shown in step #2, replacing the service name with Clamd.


→ Are you looking to install the ClamAV Plugin from WHM?

   Please refer to Install ClamAV for more details.

Want to run the ClamAV scan from SSH in cPanel?
    Please refer to Run ClamAV for more details.

Looking to run Maldate and ClamAV from the same server?
    Please refer to Run multiple scanners for more details.



Was this answer helpful?

« Back

chat