Bug 15783 - SB Server starts up before MySQL and fails
: SB Server starts up before MySQL and fails
Status: RESOLVED DUPLICATE of bug 15781
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 7.4.2
: Macintosh MacOS X 10.5
: -- normal (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-25 13:32 UTC by Jonathan Nichols
Modified: 2010-02-25 13:37 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Nichols 2010-02-25 13:32:32 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);
}
Comment 1 Jonathan Nichols 2010-02-25 13:37:10 UTC
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 ***