Date: Sat, 11 Jun 2016 18:40:50 +0200 From: Michael Gmelin <freebsd@grem.de> To: Mathieu Arnold <mat@FreeBSD.org> Cc: abi <abi@abinet.ru>, ports@freebsd.org Subject: Re: wait for mysql availability Message-ID: <20A7440D-80E1-4E2A-BAC4-713DC97CB949@grem.de> In-Reply-To: <11C24D0E7B6E9F7E2D80B5C3@atuin.in.mat.cc> References: <575BEC94.70209@abinet.ru> <11C24D0E7B6E9F7E2D80B5C3@atuin.in.mat.cc>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 11 Jun 2016, at 08:11, Mathieu Arnold <mat@FreeBSD.org> wrote: >=20 >=20 >=20 > +--On 11 juin 2016 13:48:52 +0300 abi <abi@abinet.ru> wrote: > | Hello, > |=20 > | I have a daemon depended on mysql database, however > | REQUIRE: mysql > | is not enough as mysql databases are not available immediately after > | mysql start, so my daemon fails to start. > |=20 > | Are there any way to check mysql availability that would by mysql setup > | agnostic? > |=20 > | I have 2 ideas: use sleep() or standalone script using application > | credentials in prestart. >=20 > The mysql server should be ready to use after its rc script returns, you > should open a PR with mysql for this to be fixed. >=20 >=20 There's a difference between starting MySQL and it becoming available to cli= ents, e.g. when innodb is recovering from a crash, which can take a long tim= e and is not necessarily something you want to wait for on boot. - m
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20A7440D-80E1-4E2A-BAC4-713DC97CB949>