fix grep for pid

git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@381529 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-02-28 01:18:40 +00:00
parent 44c19f4a4b
commit 52c392fdf8
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ timer=0
timeout=300
while (( ! dead && timer < timeout ))
do
if ps -eo pid | grep -q $pid
if ps -eo pid | grep -qw $pid
then
kill $pid
(( timer++ ))
@ -93,7 +93,7 @@ do
dead=1
fi
done
if ps -eo pid | grep -q $pid
if ps -eo pid | grep -qw $pid
then
logMessage rsyncd failed to stop after $timeout seconds
exit 3