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

Disable ClamAV Service

Step 1: The first step is to stop the ClamAV scanner by applying the following command:

# sudo systemctl stop clamd@scan

Step 2: Run the following commands to disable the ClamAV scanner at system startup:

# sudo systemctl stop clamd
# sudo systemctl disable clamd

Once ClamAV is disabled, you may have to verify its status.

Step 3: 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:

# systemctl status clamd@scan

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


Disable Other Unwanted Services

Step 1: List enabled services at startup:

# systemctl list-unit-files --type=service | grep enabled

Step 2: Check the status of a specific service:

# systemctl status <service-name>

Step 3: Disable a service from starting at boot:

# sudo systemctl disable <service-name>

Step 4: Stop the service immediately (optional):

# sudo systemctl stop <service-name>


→ 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? 1 Users Found This Useful (5 Votes)