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


Reply via email to