Bugzilla – Bug 15783
SB Server starts up before MySQL and fails
Last modified: 2010-02-25 13:37:10 UTC
Environment: Mac OS X Server 10.5.8 with SB Server using the Apple included MySQL instance. Problem: Upon a reboot, the MySQL instance is a little slow to start up and SB Server tries to start up but fails because the database isn't available yet. SB Server does not retry, it simply remains failed. Current workaround: Set SB Server to never start up on its own. Starting it manually works because by the time I get logged into the machine, MySQL is up and accepting connections. This does require me to log into the server as an admin user and I'm often not in a position where I can do so. Potential solutions: * A user configurable option to delay the SB Server startup? * Have SB Server make a test connection and if that fails, try again in 30 seconds? Can I just add the following to the top of slimserver.pl or will it just be overwritten by future updates? $num = 20; while($num--){ sleep(1); }
My apologies - submitted this twice thinking it never went through due to some browser issues. Marking as a dupe of 15781 *** This bug has been marked as a duplicate of bug 15781 ***