Improved init.d script

Scott Silva ssilva at
Thu Aug 2 19:00:48 IST 2007

Julian Field spake the following on 8/2/2007 10:38 AM:
> Attached are new versions of the RedHat and SuSE /etc/init.d/MailScanner
> scripts.
> The improvement is obvious when you do
>    /etc/init.d/MailScanner restart
> or
>    service MailScanner restart
> It used to just wait for a fixed length of time (30 seconds by default).
> Now it watches to see when the old MailScanner processes have actually
> died, and starts it all back up again as soon as the previous
> MailScanner is dead.
> It is important not to 'kill -9' the MailScanner processes, as they do
> quite a bit of cleanup so they don't leave a mess behind, for example in
> /var/spool/MailScanner/incoming.
> Please let me know what you think of them, and if they work for you okay.
> Jules
Tried it on 2 of my servers, and it is working great!
I'll do some beating on them tonite after the minions go home.


MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

More information about the MailScanner mailing list