diff options
author | unknown <jimw@mysql.com> | 2005-01-04 01:49:29 +0100 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-01-04 01:49:29 +0100 |
commit | 33aa4e381b60c2bf209a345f55e598fe6819f9aa (patch) | |
tree | 472accde5e73776f07b7a4de4da93fa2e7e08c82 /scripts | |
parent | 65c2ab11bc3955e230422443a2243d47f974b9ae (diff) | |
download | mariadb-git-33aa4e381b60c2bf209a345f55e598fe6819f9aa.tar.gz |
Use 'ps xaww' in mysqld_safe (on Linux) so whole command-line is searched
for port and/or pid-file parameters. (Bug #5878)
scripts/mysqld_safe.sh:
Change 'ps xa' to 'ps xaww' so whole command-line is examined
Diffstat (limited to 'scripts')
-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 1f4d17f8885..270c08679eb 100644 --- a/scripts/mysqld_safe.sh +++ b/scripts/mysqld_safe.sh @@ -322,13 +322,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 |