summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMostafa Hussein <mostafa.hussein91@gmail.com>2018-09-29 11:30:27 +0200
committerAnel Husakovic <anel@mariadb.org>2019-07-08 04:21:18 -0700
commit8997f20f12309d2660988f254415a343d6328835 (patch)
treef5c802b0caeb8940cd8c9068d0475aa71965e27f
parent399d012c81b8f830a19ccf03d156cdd6194380c3 (diff)
downloadmariadb-git-8997f20f12309d2660988f254415a343d6328835.tar.gz
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
-rw-r--r--support-files/mysql.server.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh
index f3990967b87..97d3059c2ea 100644
--- a/support-files/mysql.server.sh
+++ b/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`