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 ] then service clamav-daemon restart echo "Clamav-Daemon failed and it was restarted" | mail -s "Clamav-Daemon restarted" [email protected] else echo "eq 0 - clamav-daemon found - do nothing" 2>&1 # echo "Clamav-Daemon running" | mail -s "Clamav-Daemon is active" [email protected] Fi I had requested for a membership in clamav-users mailing list, shall try there. Best regards Biju Jose From: Eric Broch [mailto:[email protected]] Sent: 09 November 2019 19:40 To: [email protected] Subject: Re: [qmailtoaster] clamav-daemon I'm not sure why that would be happening. Can you contact the clamav mailing list? On Mon, Nov 4, 2019 at 11:02 PM Biju Jose | WHITES Systems <[email protected] <mailto:[email protected]> > wrote: Hi 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
