Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users
Re: List delays.
 

Index | Next | Previous | View Flat


ged at jubileegroup

May 27, 2012, 4:42 AM


Views: 141
Permalink
Re: List delays.

Hi there,

On Sat, 26 May 2012 Paul Whelan wrote:

> Thank you Joel, perhaps this needs to be done regularly - another
> one was stuck for over 2 years.

That's the trouble with Linux... :)
root [at] mai:~ # uptime
12:28:19 up 95 days, 18:11, 11 users, load average: 0.00, 0.01, 0.05


On Sat, 26 May 2012 Joel Esler wrote:

> Yes. I've cleared all the queues now, and will monitor closely going forward.

8<----------------------------------------------------------------------
root [at] mai:~$ >>> crontab -l | grep check_queue.sh
37 * * * * /etc/mail/check_queue.sh
root [at] mai:~$ >>> cat /etc/mail/check_queue.sh
#!/bin/bash
# mail:/etc/mail/check_queue.sh
EMAIL=joel [at] example
MESSAGE=/home/joel/check_queue_message
QUEUE_DIRECTORY=/var/spool/clientmqueue
QLIMIT=200
if [ `/bin/ls $QUEUE_DIRECTORY | /usr/bin/wc -l` -gt $QLIMIT ] ; then \
/usr/local/bin/mail -s "Check mail queue!" $EMAIL < $MESSAGE ;
fi
8<----------------------------------------------------------------------

HTH

--

73,
Ged.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Subject User Time
Re: List delays. ged at jubileegroup May 27, 2012, 4:42 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.