Answer the question
In order to leave comments, you need to log in
Waiting for mysql to start?
The question is how to make mysql start waiting, if it gets up, then the launch of the following script
Answer the question
In order to leave comments, you need to log in
Yes, it's trite, you make a loop in which you execute a simple sql query every few seconds, and if it was successful, you exit the loop.
You can add a timeout to the loop by which to complete the script with an error.
ps In general, more details are needed. If you need autostart at system startup, then you can specify the dependency through systemd.
команда && вторая команда
&& - if labor is over
|| -if the command ended in a crash
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question