Skip to main content

setupclamav

Clamav Antivirus Setup Tool

This tool will help you to install ClamAV service and clamd daemon on your server.  We use a customcustom-built build clamavClamAV distribution which will provide live virus protection using the ClamAV On-Access Scanner service. 

Clamd is a CPU CPU-intensive application. It uses a lot of cpuCPU resources. 

Command :

/usr/local/eenos/scripts/setupclamav

Command Options :

/usr/local/eenos/scripts/setupclamav
Copyright(c) 2020-2022, eenos.com
Eenos Clamav  setup tool
This tool will help you to install Clamav Antivirus

Usage: /usr/local/eenos/scripts/setupclamav  <options>=[values]

Command Groups:
Options:
    --install           -   Install Clamav
    --rebuildconf       -   Rebuild Clamav configuration

Example  : /usr/local/eenos/scripts/setupclamav --install

What areis included with the ClamAV  package?

The eenos clamav package includes, includes clamav daemon,  clamav On-Access scannerscanner, and Clamav  Database updation.

Clamd 

The clamav Clamav daemon service provides antivirus scanning of emails. It is integrated with the eenos eximExim mail server.

On-Access scanner 

This service is a live virus scanner.  Whenever a new  virus file is uploaded to the server, it will be moved to the quarantine folder /var/lib/quarantine  automatically

Some containers like LXC need special privileges to access the fanotify_init  from the kernel.

Freshclam

This is a timer application whichthat will automatically update  the clamavClamav virus database.

Install ClamAV and Related Services

You may use the following command to install ClamAV ,ClamAV,  ClamAV On-Access Scanner Scanner, and Clamd services.

Command:

 /usr/local/eenos/scripts/setupclamav --install

Rebuild ClamAV Configuration

The following command will rebuild the ClamAV configuration.

Command:

/usr/local/eenos/scripts/setupclamav --rebuildconf
Restart Clamd Service

Command:

systemctl restart clamav-daemon.service
Restart ClamAV  On-Access Scanner

Command:

systemctl restart clamav-clamonacc.service
Restart ClamAV Virus Database Updater

Command :

systemctl restart clamav-freshclam.service