diff options
author | serg@sergbook.mysql.com <> | 2005-01-06 19:32:16 +0200 |
---|---|---|
committer | serg@sergbook.mysql.com <> | 2005-01-06 19:32:16 +0200 |
commit | f472cec17809bd2b9cbd1c73bf65bc171199ef70 (patch) | |
tree | bc5f2396178536c669ed27714be84b79612c0f6b /scripts/mysqld_safe.sh | |
parent | 15133e70ac963d1e45342b8b6dea841d3855cd7e (diff) | |
parent | 03f64a63431043689332c6b633990c5bf6b0c535 (diff) | |
download | mariadb-git-f472cec17809bd2b9cbd1c73bf65bc171199ef70.tar.gz |
merged
Diffstat (limited to 'scripts/mysqld_safe.sh')
-rw-r--r-- | scripts/mysqld_safe.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh index 0e18f137c5a..0b83acfa13d 100644 --- a/scripts/mysqld_safe.sh +++ b/scripts/mysqld_safe.sh @@ -327,13 +327,13 @@ do # but should work for the rest of the servers. # The only thing is ps x => redhat 5 gives warnings when using ps -x. # kill -9 is used or the process won't react on the kill. - numofproces=`ps xa | grep -v "grep" | grep "$ledir/$MYSQLD\>" | grep -c "pid-file=$pid_file"` + numofproces=`ps xaww | grep -v "grep" | grep "$ledir/$MYSQLD\>" | grep -c "pid-file=$pid_file"` echo -e "\nNumber of processes running now: $numofproces" | tee -a $err_log I=1 while test "$I" -le "$numofproces" do - PROC=`ps xa | grep "$ledir/$MYSQLD\>" | grep -v "grep" | grep "pid-file=$pid_file" | sed -n '$p'` + PROC=`ps xaww | grep "$ledir/$MYSQLD\>" | grep -v "grep" | grep "pid-file=$pid_file" | sed -n '$p'` for T in $PROC do |