That's zoneminder and it doesn't survive mysql restart :-]

On 11.06.2016 13:54, Kurt Jaeger wrote:
Hi!

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 second one is much better. The daemon should retry anyway if
the mysql connection is not available. Otherwise, how does it
cope if the mysql database is restarted ?


_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to