clamav-daemon service failed

Post Reply
putude
Posts: 12
Joined: Tue Jun 30, 2020 6:06 am

Hi,
I have 3 servers run MyVestaCP. Two of them failed to run clamav-daemon service and all of them failed to run logrotate service. Anybody experiencing this problem?

Tags:
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Probably too low free memory in RAM (2GB RAM is not enough to run ClamAV), so Kernel OOM Killer killed IT in order to free the RAM, you can find that event in /var/log/syslog (if you have a clue what day it happened)

If you are not using that server for receving email, I suggest you to turn off ClamAV, that service is holding almost 1GB of RAM.

Code: Select all

systemctl stop clamav-daemon.service
systemctl disable clamav-daemon.service

systemctl stop clamav-freshclam.service
systemctl disable clamav-freshclam.service

sed -i "s/^CLAMD =/#CLAMD =/g" /etc/exim4/exim4.conf.template
systemctl restart exim4
Other solution is to create swap:

Code: Select all

dd if=/dev/zero of=/swapfile1 bs=1024 count=1048576
chown root:root /swapfile1
chmod 0600 /swapfile1
mkswap /swapfile1
swapon /swapfile1
echo "/swapfile1 none swap sw 0 0" >> /etc/fstab
putude
Posts: 12
Joined: Tue Jun 30, 2020 6:06 am

Ok, @dpeca
thank you for your suggestion.
I remove the Clamav Service as your guidance and consider upgrading the memory on my VPS.
Post Reply