You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by yo...@apache.org on 2006/02/28 02:18:42 UTC
svn commit: r381529 - /incubator/solr/trunk/src/scripts/rsyncd-stop
Author: yonik
Date: Mon Feb 27 17:18:40 2006
New Revision: 381529
URL: http://svn.apache.org/viewcvs?rev=381529&view=rev
Log:
fix grep for pid
Modified:
incubator/solr/trunk/src/scripts/rsyncd-stop
Modified: incubator/solr/trunk/src/scripts/rsyncd-stop
URL: http://svn.apache.org/viewcvs/incubator/solr/trunk/src/scripts/rsyncd-stop?rev=381529&r1=381528&r2=381529&view=diff
==============================================================================
--- incubator/solr/trunk/src/scripts/rsyncd-stop (original)
+++ incubator/solr/trunk/src/scripts/rsyncd-stop Mon Feb 27 17:18:40 2006
@@ -84,7 +84,7 @@
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 @@
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