Improved init.d script

James lists at
Thu Aug 2 18:52:47 IST 2007

Julian Field wrote:
> 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
Works for me CentOS 4.5

More information about the MailScanner mailing list