MS and Restart every 4hrs

Rose, Bobby brose at MED.WAYNE.EDU
Fri Oct 25 14:02:53 IST 2002


So nothing is gained from the new script?  Is it because it's using a
non-gnu ps? Or because the process parameter is perl instead of
mailscan? If not then I'll just soft link it  like it was in 3.x.  

-----Original Message-----
From: Julian Field [mailto:mailscanner at ECS.SOTON.AC.UK] 
Sent: Friday, October 25, 2002 6:34 AM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: MS and Restart every 4hrs


At 22:50 24/10/2002, you wrote:
>I double checked and I amd seeing something here.  If I start MS via 
>check_mailscanner.solaris, I see 5 mailscanner processes running and 
>all is well, but if I start it using check_mailscanner, I see 5 perl 
>processes running but after awhile I end up with as many perl processes

>as memory apparently allows.

That will be the "is it already running" test in check_mailscanner not
quite working for your OS. Take a look at the script. You might want to
copy over the relevant Solaris chunk from check_mailscanner.solaris into
it (or just use the check_mailscanner.solaris script instead).

It's a thing that is almost impossible to do in a totally portable way.

>On my test box, I started MS using the .solaris one last night and this

>afternoon still had only 5 processes.  I kill them and restarted using 
>check_mailscanner and after 5 hours I have 21 perl processess each 
>taking the normal 22-24megs.
>
>-----Original Message-----
>From: Julian Field [mailto:mailscanner at ECS.SOTON.AC.UK]
>Sent: Thursday, October 24, 2002 4:36 PM
>To: MAILSCANNER at JISCMAIL.AC.UK
>Subject: Re: MS and Restart every 4hrs
>
>
>At 14:09 24/10/2002, you wrote:
> >I wasn't sure of this but I think I might be seeing something wrong 
> >with the check_mailscanner script.  On my test box, if I started with

> >the new script, after a couple hours all my memory is eaten.  On my 
> >production system which I started around the same time last night I 
> >started with check_mailscanner.solaris and it doesn't have the 
> >problem.
>
> >The new script the primary process is perl whereas the old one is 
> >mailscanner and I know it shouldn't make a difference in how the 
> >program runs but I was wondering if it prevents it from restarting.
>
>No, the code goes round its loop until its time is up, then it exits 
>and gets re-run by the parent process. It doesn't need to do the 
>"re-exec" method that I used in version 3, because there was no parent 
>process then.
>
> >   Also in v3 you could
> >see when it restarted every 4hrs but how can you tell now?
>
>You should still see the
>          MailScanner E-Mail Virus Scanner version 4.01-8 starting... 
>in the maillog.
>--
>Julian Field                Teaching Systems Manager
>jkf at ecs.soton.ac.uk         Dept. of Electronics & Computer Science
>Tel. 023 8059 2817          University of Southampton
>                              Southampton SO17 1BJ

--
Julian Field                Teaching Systems Manager
jkf at ecs.soton.ac.uk         Dept. of Electronics & Computer Science
Tel. 023 8059 2817          University of Southampton
                             Southampton SO17 1BJ




More information about the MailScanner mailing list