setupclamav
Clamav Antivirus Setup Tool
This tool will help you to install ClamAV service and clamd daemon on your server. We use a custom-built ClamAV distribution which will provide live virus protection using the ClamAV On-Access Scanner service.
Clamd is a CPU-intensive application. It uses a lot of CPU 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 is included with the ClamAV package?
The eenos clamav package includes clamav daemon, clamav On-Access scanner, and Clamav Database updation.
Clamd
The Clamav daemon service provides antivirus scanning of emails. It is integrated with the eenos Exim 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 that will automatically update the Clamav virus database.
Install ClamAV and Related Services
You may use the following command to install ClamAV, ClamAV On-Access 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