use -f with pgrep

pgrep will not be able to get th pid using the full path which is $libexec/mysqld unless -f is being used
This commit is contained in:
Mostafa Hussein 2018-09-29 11:30:27 +02:00 committed by Anel Husakovic
parent 399d012c81
commit 8997f20f12

View File

@ -386,7 +386,7 @@ case "$mode" in
fi
else
# Try to find appropriate mysqld process
mysqld_pid=`pgrep $libexecdir/mysqld`
mysqld_pid=`pgrep -f $libexecdir/mysqld`
# test if multiple pids exist
pid_count=`echo $mysqld_pid | wc -w`