[jboss-cvs] JBossAS SVN: r101676 - trunk/main/src/bin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Mar 1 12:14:16 EST 2010
Author: mladen.turk at jboss.com
Date: 2010-03-01 12:14:16 -0500 (Mon, 01 Mar 2010)
New Revision: 101676
Modified:
trunk/main/src/bin/run.sh
Log:
Implement JBPAPP-3797. User must provide JBOSS_PIDFILE which will contain JBOSS_PID
Modified: trunk/main/src/bin/run.sh
===================================================================
--- trunk/main/src/bin/run.sh 2010-03-01 17:03:30 UTC (rev 101675)
+++ trunk/main/src/bin/run.sh 2010-03-01 17:14:16 UTC (rev 101676)
@@ -242,6 +242,9 @@
trap "kill -QUIT $JBOSS_PID" QUIT
trap "kill -PIPE $JBOSS_PID" PIPE
trap "kill -TERM $JBOSS_PID" TERM
+ if [ "x$JBOSS_PIDFILE" != "x" ]; then
+ echo $JBOSS_PID > $JBOSS_PIDFILE
+ fi
# Wait until the background process exits
WAIT_STATUS=128
while [ "$WAIT_STATUS" -ge 128 ]; do
More information about the jboss-cvs-commits
mailing list