[jboss-cvs] JBossAS SVN: r108548 - branches/JBPAPP_4_2_0_GA_CP/system/src/bin.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Oct 13 11:16:14 EDT 2010


Author: permaine
Date: 2010-10-13 11:16:13 -0400 (Wed, 13 Oct 2010)
New Revision: 108548

Modified:
   branches/JBPAPP_4_2_0_GA_CP/system/src/bin/run.sh
Log:
JBPAPP-4494 run.sh does not remove the pid file

Modified: branches/JBPAPP_4_2_0_GA_CP/system/src/bin/run.sh
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/system/src/bin/run.sh	2010-10-13 15:10:03 UTC (rev 108547)
+++ branches/JBPAPP_4_2_0_GA_CP/system/src/bin/run.sh	2010-10-13 15:16:13 UTC (rev 108548)
@@ -281,6 +281,9 @@
             # Wait for a complete shudown
             wait $JBOSS_PID 2>/dev/null
       fi
+      if [ "x$JBOSS_PIDFILE" != "x" ]; then
+            grep "$JBOSS_PID" $JBOSS_PIDFILE && rm $JBOSS_PIDFILE
+      fi 
    fi
    # If restart doesn't work, check you are running JBossAS 4.0.4+
    #    http://jira.jboss.com/jira/browse/JBAS-2483



More information about the jboss-cvs-commits mailing list