diff options
author | Mostafa Hussein <mostafa.hussein91@gmail.com> | 2018-09-29 11:30:27 +0200 |
---|---|---|
committer | Anel Husakovic <anel@mariadb.org> | 2019-07-08 04:21:18 -0700 |
commit | 8997f20f12309d2660988f254415a343d6328835 (patch) | |
tree | f5c802b0caeb8940cd8c9068d0475aa71965e27f /support-files | |
parent | 399d012c81b8f830a19ccf03d156cdd6194380c3 (diff) | |
download | mariadb-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
Diffstat (limited to 'support-files')
-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` |