Clamav + Amavis not auto starting

Started by Space Cowboy, October 10, 2017, 09:50:45 AM

Previous topic - Next topic

Space Cowboy

This is not a huge issue but when I do a server reboot now (Centos 7 VPS, 2 core, 4gb, 40gb, 4tb) my ClamAV, AMaViS and SpamAssassin do not auto start (little moon "asleep?" icon). They start fine when I click start for them, they are configured correctly but I'm just curious as to why they don't autostart.

Thanks in advance for any insight!

tyrnight

I use this after a reboot:

service clamd stop
service postfix stop
rm -f /var/run/clamd.amavisd/clamd.sock

!!!delay for 10 seconds before continuing

service postfix start
service clamd start



Jason

Quote from: Space Cowboy on October 10, 2017, 09:50:45 AM
This is not a huge issue but when I do a server reboot now (Centos 7 VPS, 2 core, 4gb, 40gb, 4tb) my ClamAV, AMaViS and SpamAssassin do not auto start (little moon "asleep?" icon). They start fine when I click start for them, they are configured correctly but I'm just curious as to why they don't autostart.

Thanks in advance for any insight!

Reviving old post from the dead....

I also have this issue, if I start it like you  do it uses 100% CPU,  I run this after every reboot to fix:

service clamd stop
rm -f /var/run/clamd.amavisd/clamd.sock
service clamd start


tiagondelgado

Some one can help me?



● clamd.service - clamd scanner () daemon
   Loaded: loaded (/usr/lib/systemd/system/clamd.service; static; vendor preset: disabled)
   Active: failed (Result: start-limit) since Tue 2019-05-14 16:39:58 BST; 2min 26s ago

  Process: 40721 ExecStart=/usr/sbin/clamd -c /etc/clamd.d/amavisd.conf --foreground=yes (code=exited, status=1/FAILURE)
Main PID: 40721 (code=exited, status=1/FAILURE)

May 14 16:39:58 WEB01.local systemd[1]: Unit clamd.service entered failed state.
May 14 16:39:58 WEB01.local systemd[1]: clamd.service failed.
May 14 16:39:58 WEB01.local systemd[1]: clamd.service holdoff time over, scheduling restart.
May 14 16:39:58 WEB01.local systemd[1]: Stopped clamd scanner () daemon.
May 14 16:39:58 WEB01.local systemd[1]: start request repeated too quickly for clamd.service
May 14 16:39:58 WEB01.local systemd[1]: Failed to start clamd scanner () daemon.
May 14 16:39:58 WEB01.local systemd[1]: Unit clamd.service entered failed state.
May 14 16:39:58 WEB01.local systemd[1]: clamd.service failed.

OnlyHard

try this,
yum remove clamav -y
yum ynstall clamav -y

reboot ant test if thats work or not

MarioG

I had a similar issue with spamassassin.  For me, I manually enabled it from the shell:
systemctl enable spamassassin

It's now enabled on reboot.