Date: Sat, 11 Jun 2016 13:48:52 +0300 From: abi <abi@abinet.ru> To: ports@freebsd.org Subject: wait for mysql availability Message-ID: <575BEC94.70209@abinet.ru>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?575BEC94.70209>