Skip to main content

setupclamav

Clamav Antivirus Setup Tool

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

Clamd is a CPU intensive application. It use a lots 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 are included with ClamAV  package?

The eenos clamav package include ,  clamav daemon,  clamav On-Access scanner , Clamav  Database updating too

Clamd 

The clamav  daemon service provide antivirus scanning of emails. It is integrated with the eenos exim mail server.

On-Access scanner 

This service is a live virus scanner , when ever a new  virus file 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 kernel

Freshclam

This is a timer application which 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 service

Command:

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

Rebuild ClamAV Configuration

The following command will rebuild 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