mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
Backporting patch for bug#15852074.
This commit is contained in:
parent
bb1b9f0f5c
commit
84b942d103
1 changed files with 7 additions and 1 deletions
|
@ -416,7 +416,13 @@ case "$mode" in
|
|||
else
|
||||
# Try to find appropriate mysqld process
|
||||
mysqld_pid=`pidof $libexecdir/mysqld`
|
||||
if test -z $mysqld_pid ; then
|
||||
|
||||
# test if multiple pids exist
|
||||
pid_count=`echo $mysqld_pid | wc -w`
|
||||
if test $pid_count -gt 1 ; then
|
||||
log_failure_msg "Multiple MySQL running but PID file could not be found ($mysqld_pid)"
|
||||
exit 5
|
||||
elif test -z $mysqld_pid ; then
|
||||
if test "$use_mysqld_safe" = "0" ; then
|
||||
lockfile=/var/lock/subsys/mysqlmanager
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue