Skip to content
Permalink
Browse files

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
  • Loading branch information...
mostafahussein authored and an3l committed Sep 29, 2018
1 parent 399d012 commit 8997f20f12309d2660988f254415a343d6328835
Showing with 1 addition and 1 deletion.
  1. +1 −1 support-files/mysql.server.sh
@@ -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`

0 comments on commit 8997f20

Please sign in to comment.
You can’t perform that action at this time.