mirror of https://github.com/apache/lucene.git
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:
parent
44c19f4a4b
commit
52c392fdf8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue