Skip to content

Commit 8997f20

Browse files
mostafahusseinan3l
authored andcommitted
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
1 parent 399d012 commit 8997f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support-files/mysql.server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ case "$mode" in
386386
fi
387387
else
388388
# Try to find appropriate mysqld process
389-
mysqld_pid=`pgrep $libexecdir/mysqld`
389+
mysqld_pid=`pgrep -f $libexecdir/mysqld`
390390

391391
# test if multiple pids exist
392392
pid_count=`echo $mysqld_pid | wc -w`

0 commit comments

Comments
 (0)