diff options
author | Mostafa Hussein <mostafa.hussein91@gmail.com> | 2018-09-29 11:30:27 +0200 |
---|---|---|
committer | Anel Husakovic <anel@mariadb.org> | 2019-07-03 07:17:03 -0700 |
commit | a6efc1af8ae07f3fe166b30da3c26489d099b5d0 (patch) | |
tree | e8d72aee432aa7a902ad87dfa172bd34b08d896d | |
parent | ecd8f44844c84b7ab0865eeb4e6e0ddd15836e16 (diff) | |
download | mariadb-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.sh | 2 |
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` |