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:
parent
42b9758814
commit
1987819281
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user