4.49.7-1 process name feature keeps adding processes

Res res at AUSICS.NET
Sat Jan 7 06:34:47 GMT 2006


On Fri, 6 Jan 2006, Michael Masse wrote:

> It appears to be a problem with check_MailScanner which I have running once 
> an hour.    It can't seem to detect that MailScanner is running, so it starts 
> up new processes.    If I do a ps axww the relavant lines are:

Run this (pid= is all on one line, change path to MailScanner if not in 
/opt

#!/bin/sh
pid=`ps axww |egrep MailScanner'[:]|\['MailScanner'\]|[ ]'/opt/MailScanner/bin/MailScanner | awk '{ print $1 }'` ;  echo MailScanner running with pid $pid


if [ "x$pid" = "x" ]; then
   echo MailScanner not running
else
   if [ "x$1" != "x-q" ]; then
     echo MailScanner running with pid $pid
   fi
fi


thats all the check process does
what does it print out ?


and example here is:

root at valhalla:/opt/MailScanner/bin# ./test
MailScanner running with pid 13863 26862 27237 27411 27429 28249
root at valhalla:/opt/MailScanner/bin# /etc/rc.d/rc.sendmail stop
root at valhalla:/opt/MailScanner/bin# ./test
MailScanner not running
root at valhalla:/opt/MailScanner/bin#


-- 
Cheers
Res

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list