You are not logged in.

#1 2010-07-05 23:27:53

kr1zmo
Member
Registered: 2010-07-03
Posts: 22

[solved]Delay mySQL startup by 30 secs in /etc/rc.conf

Basically I use wpa_supplicant and it takes a a bit to connect, by the time /etc/rc.conf gets to the mysql startup service, mySQL cannot bind to my servers address,

This is because wpa_supplicant probably hasn't got an IP address yet, so mySQL fails to start at bootup every time, however right after the boot I can log in and manually boot it just fine.

Any Ideas?  Maybe delay the mysql by 30-40 seconds at boot? Anyone know how?

Last edited by kr1zmo (2010-07-05 23:57:10)

Offline

#2 2010-07-05 23:55:05

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [solved]Delay mySQL startup by 30 secs in /etc/rc.conf

You could put:

/etc/rc.d/mysqld start

in /etc/rc.local

Offline

#3 2010-07-05 23:59:42

kr1zmo
Member
Registered: 2010-07-03
Posts: 22

Re: [solved]Delay mySQL startup by 30 secs in /etc/rc.conf

itsbrad212 wrote:

You could put:

/etc/rc.d/mysqld start

in /etc/rc.local

Thanks for the reply but I solved this by removing the @ before netprofiles, so that wpa_supplicant doesnt startup in the background, therefor everything else waits until wpa_supplicant is connected before it boots.

Last edited by kr1zmo (2010-07-05 23:59:58)

Offline

#4 2010-07-06 00:30:56

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved]Delay mySQL startup by 30 secs in /etc/rc.conf

the question is why do you need networking support?  default is to skip-networking


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-07-06 02:16:59

kr1zmo
Member
Registered: 2010-07-03
Posts: 22

Re: [solved]Delay mySQL startup by 30 secs in /etc/rc.conf

wonder wrote:

the question is why do you need networking support?  default is to skip-networking

Im connecting via, remote.  I have to be able to access mySQL away from my data center.

Offline

Board footer

Powered by FluxBB