MDEV-6428 [PATCH] MariaDB start script doesn't realize failure of MariaDB startup

abort the wait loop if mysqld_safe is not running
This commit is contained in:
Sergei Golubchik 2014-07-26 23:08:38 +02:00
parent 42b9758814
commit 1987819281

View File

@ -259,6 +259,11 @@ wait_for_ready () {
if $bindir/mysqladmin ping >/dev/null 2>&1; then
log_success_msg
return 0
elif kill -0 $! 2>/dev/null ; then
: # mysqld_safe is still running
else
# mysqld_safe is no longer running, abort the wait loop
break
fi
echo $echo_n ".$echo_c"