mqueue and mqueue.in have more files than necessary ... should
I worry?
Julian Field
MailScanner at ecs.soton.ac.uk
Mon Apr 3 21:07:52 IST 2006
It would be better if you either did a "restart" instead of a "start" or
else significantly increased the length of time between the stop and the
start. It really can take MailScanner 20 or 30 seconds to properly shut
down, due to all the cleanup that happens when you close it down.
Greg Matthews wrote:
> I often get "orphaned" data files lying around. ie those df files
> without a corresponding qf envelope file. I use the following script to
> clean them up:
>
> #!/bin/bash
> # clean up orphaned df* files in mqueue.in
> # no known cause for these files yet.
>
> /etc/init.d/MailScanner stop
>
> sleep 2
> dir="/var/spool/mqueue.in"
>
> file=`find $dir -mtime +1`
> for i in ${file}
> do m=`basename ${i}`
> j=${m:2}
> if [ ! -e "${dir}/qf${j}" ]; then
> mv ${i} /var/tmp/
> fi
> done
> echo
> df -hl
>
> /etc/init.d/MailScanner start
>
> exit 0
>
>
--
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MailScanner
mailing list