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-03 07:17:03 -0700
commita6efc1af8ae07f3fe166b30da3c26489d099b5d0 (patch)
treee8d72aee432aa7a902ad87dfa172bd34b08d896d
parentecd8f44844c84b7ab0865eeb4e6e0ddd15836e16 (diff)
downloadmariadb-git-bb-anel-5.5.tar.gz
use -f with pgrepbb-anel-5.5
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`