MailScanner and MySQL

Martin martin.lyberg at gmail.com
Tue Apr 25 13:00:08 IST 2006


Hi,

This may be a little OT, but i noticed a problem today on my debian 
testbox. I'm running Mailscanner, Postfix, Mailwatch and MySQL.

When i reboot, MailScanner starts before MySQL, which gives me the 
following error in the maillog:

MailScanner[1658]: Unable to initialise database connection: Can't 
connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (2)

I have to restart mailscanner in order to get it to connect to MySQL. Is 
there a easy way to either change start order of the services or make a 
little script to check if mysql is running before starting mailscanner?

Thanks in advance.

/ Martin



More information about the MailScanner mailing list