wait for mysql availability

abi abi at abinet.ru
Sat Jun 11 10:49:02 UTC 2016


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.


More information about the freebsd-ports mailing list