"Restart Every" option in MailScanner.conf?

Julian Field MailScanner at ecs.soton.ac.uk
Fri Dec 30 13:59:40 GMT 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

shuttlebox wrote:

> On 12/30/05, *Michael Mansour* <micoots at yahoo.com 
> <mailto:micoots at yahoo.com>> wrote:
>
>     Is it correct to say that this setting is only
>     relevant when MailScanner is actually started?
>     (otherwise how could the conf file be read).
>
>     However, for some reason, MailScanner runs on the
>     standby node, even though I don't have it starting up
>     on boot, and I don't have mailscanner-mrtg starting it
>     up either (there's a setting in mailscanner-mrtg which
>     monitors MailScanner processes). I'm not sure why
>     MailScanner starts on the standby node when it
>     shouldn't.
>
>
> The parent MailScanner process never stops running, it doesn't perform 
> any actual mail work but kills off old children and spawns new ones at 
> those intervals specified in "Restart every..." and when you issue a 
> MailScanner reload. The children read the config themselves when they 
> start.

Apart from re-reading the config files, this is for protection against 
memory leaks and other resources. It is highly likely that Perl leaks 
some memory when running an application the size of MailScanner. So to 
protect against that, the processes periodically die off and are 
re-started, freeing up all the leaked resources.

>
> Look for cron jobs that might start MailScanner, both crontab for the 
> root user and cron.hourly and such directories. On Linux systems they 
> are added when you install MailScanner.

/etc/cron.hourly is where to look. If you stop MailScanner with "service 
MailScanner stop" then it will write a flag that tells the cron job not 
to do anything.

-- 
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.

------------------------ 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