WARNING to Mac OSX Users

James Gray james at grayonline.id.au
Tue May 30 22:06:47 IST 2006


The bin/check_mailscanner script needs to modified BEFORE you activate (cron 
etc) it.

Add the following to the check_mailscanner script as the last "elseif" 
before the final "else" at the top of the file:

elif $UNAME | $FGREP "Darwin" >/dev/null ; then # ie Mac OSX
    pid=`$PS -axww |
         $EGREP '[ ]('$msbindir/$process')|'$process'[:]' |
         $AWK '{print $1}'`

Otherwise, the check_mailscanner script will start a new MailScanner process 
(parent+children) every time it is run from cron.

Case study: on my OSX server (10.4.6) with 2GB of RAM, running the unpatched 
check_mailscanner script every 15 minutes rendered it useless in 2 hours.  
RAM was 100% used, all swap consumed and the system practically froze.

Nasty.  All is good now that the code above was added to detect the Darwin 
kernel (Mac OSX) :)

Cheers,

James
-- 
Horse sense is the thing a horse has which keeps it from betting on people.
		-- W. C. Fields
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20060531/cd5c16b1/attachment.bin


More information about the MailScanner mailing list