Details
-
Bug
-
Resolution: Done
-
Major
-
EAP 5.0.0, EAP 5.0.1, EAP 5.1.0 Post Release, 4.3.0.GA_CP09
-
None
-
rmp install, all supported version
-
-
-
-
Documented as Resolved Issue
-
NEW
Description
When an instance is stopped, the /etc/init.d/jbossas script goes into a loop:
sleep=0
while [ $sleep -lt $JBOSS_STOP_TIMEOUT -a $RETVAL -eq 1 ]; do
#echo -n -e "\nwaiting for processes to stop";
sleep 10
sleep=`expr $sleep + 10`
grep -q "Shutdown complete" $JBOSS_HOME/server/$JBOSSCONF/log/server.log > /dev/null 2>&1
if [ $? -eq 0 ]; then
RETVAL=0
fi
pid=0
procrunning
if [ $pid == '0' ]; then
RETVAL=0
fi
done
If the logfile contains 2 or more sequences of shutting the instance down, then the message "Shutdown complete" would be detected even while the instance is not yet down, and the loop would exit. The remainder of the script would then report the process to be still running while in fact the instance could have shut down meanwhile. Similarly, if the loglevel is set not to show INFO messages, this test would fail anyhow.