On Tuesday 18 November 2008 12:05:33 bsd wrote:
> Hello,
>
>
> I have a server configured to start 10 services at startup (in /etc/
> rc.conf)
>
> Unfortunately, the startup of MySQL seems to be returning "ok" before
> It actually has started completely the program… the next program rely
> on MySQL and does not start well because the database is not "fully"
> started.
>
> I would like to introduce something like a "sleep 10" timer in the
> service startup process…
>
>
> How can I do that?

There's no standard support for this. You will have to modify the script in 
(/usr/local)/etc/rc.d/ for that service, specifically the ${name}_start 
function. You will however have to do this with each update, so it is 
generally better to contact the author of the service that depends on MySQL, 
to more gracefully start up: if the connection can't be made that it tries 
again until it does (maybe with a max_retries setting). This is very trivial 
stuff in daemons.

-- 
Mel

Problem with today's modular software: they start with the modules
    and never get to the software part.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to