wait for mysql availability

Mathieu Arnold mat at FreeBSD.org
Sat Jun 11 12:11:31 UTC 2016



+--On 11 juin 2016 13:48:52 +0300 abi <abi at abinet.ru> wrote:
| Hello,
| 
| 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.
| 
| Are there any way to check mysql availability that would by mysql setup
| agnostic?
| 
| I have 2 ideas: use sleep() or standalone script using application
| credentials in prestart.

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.

-- 
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20160611/489afa32/attachment.sig>


More information about the freebsd-ports mailing list