Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

fix grep for pid

Yonik Seeley52c392fdf87d
diff --git a/src/scripts/rsyncd-stop b/src/scripts/rsyncd-stop
index bfddab34805..4c1bc29630a 100755
--- a/src/scripts/rsyncd-stop
+++ b/src/scripts/rsyncd-stop
@@ -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