I am running this script every 5 minutes, but the clamav-daemon has not gone 
down since then

# check daemon

systemctl status clamav-daemon

# if not found - equals to 1, start it

if [ $? -eq 1 ]


service clamav-daemon restart

echo "Clamav-Daemon failed and it was restarted" | mail -s "Clamav-Daemon 
restarted" m...@mail.id


echo "eq 0 - clamav-daemon found - do nothing" 2>&1 

# echo "Clamav-Daemon running" | mail -s "Clamav-Daemon is active" m...@mail.id



I had requested for a membership in clamav-users mailing list, shall try there.


Best regards

Biju Jose


From: Eric Broch [mailto:ebroch.w...@gmail.com] 
Sent: 09 November 2019 19:40
To: qmailtoaster-list@qmailtoaster.com
Subject: Re: [qmailtoaster] clamav-daemon


I'm not sure why that would be happening. Can you contact the clamav mailing 


On Mon, Nov 4, 2019 at 11:02 PM Biju Jose | WHITES Systems 
<b...@whitesindia.com <mailto:b...@whitesindia.com> > wrote:


In my server clamav-daemon is getting stopped once in a while. Is there any 
option for me to monitor this and restart it when it stops ?


I am running CentOS7 64bit, 4Gb RAM 3-5K mails outward and 5-7K inward mails, 
700Mb – 1G data per day.


Any help is appreciated.


Best regards

Biju Jose

Reply via email to