directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucasthei...@apache.org
Subject svn commit: r1687818 - /directory/apacheds/trunk/installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/archive/apacheds.sh
Date Fri, 26 Jun 2015 17:22:33 GMT
Author: lucastheisen
Date: Fri Jun 26 17:22:33 2015
New Revision: 1687818

URL: http://svn.apache.org/r1687818
Log:
DIRSERVER-2075: apacheds.sh creates a file called '0' during stop action

Modified:
    directory/apacheds/trunk/installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/archive/apacheds.sh

Modified: directory/apacheds/trunk/installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/archive/apacheds.sh
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/archive/apacheds.sh?rev=1687818&r1=1687817&r2=1687818&view=diff
==============================================================================
--- directory/apacheds/trunk/installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/archive/apacheds.sh
(original)
+++ directory/apacheds/trunk/installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/archive/apacheds.sh
Fri Jun 26 17:22:33 2015
@@ -175,11 +175,12 @@ elif [ "$ADS_ACTION" = "stop" ]; then
         PID=`cat $ADS_PID`
         [ $HAVE_TTY -eq 1 ] && echo "Stopping ApacheDS instance '$ADS_INSTANCE_NAME'
running as $PID"
 
+        # Terminate the process
         kill -15 $PID > /dev/null 2>&1
 
         ATTEMPTS_REMAINING=10
         while [ $ATTEMPTS_REMAINING -gt 0 ]; do
-            kill -0 $PID > /dev/null 2>&1 -gt 0
+            kill -0 $PID > /dev/null 2>&1
             if [ $? -gt 0 ]; then
                 rm -f $ADS_PID > /dev/null 2>&1
                 [ $HAVE_TTY -eq 1 ] && echo "ApacheDS instance '$ADS_INSTANCE_NAME'
stopped successfully"



Mime
View raw message