Commit b350990a authored by Nirbhay Choubey's avatar Nirbhay Choubey

local merge.

parents 90738111 4ad004c2
...@@ -360,7 +360,13 @@ case "$mode" in ...@@ -360,7 +360,13 @@ case "$mode" in
else else
# Try to find appropriate mysqld process # Try to find appropriate mysqld process
mysqld_pid=`pidof $libexecdir/mysqld` 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 -f "$lock_file_path" ; then if test -f "$lock_file_path" ; then
log_failure_msg "MySQL is not running, but lock file ($lock_file_path) exists" log_failure_msg "MySQL is not running, but lock file ($lock_file_path) exists"
exit 2 exit 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment