Author: jfrederic.clere(a)jboss.com
Date: 2008-01-18 09:29:29 -0500 (Fri, 18 Jan 2008)
New Revision: 1291
Modified:
trunk/build/unix/buildtest.rhel-httpd.sh
Log:
Stop jboss and httpd if something fails.
Modified: trunk/build/unix/buildtest.rhel-httpd.sh
===================================================================
--- trunk/build/unix/buildtest.rhel-httpd.sh 2008-01-18 14:27:22 UTC (rev 1290)
+++ trunk/build/unix/buildtest.rhel-httpd.sh 2008-01-18 14:29:29 UTC (rev 1291)
@@ -51,12 +51,16 @@
sleep 65
curl -v http://${IPLOCAL} | grep "It works\!"
if [ $? -ne 0 ]; then
+ sudo /usr/sbin/chroot $base/$root /opt/jboss/httpd/sbin/apachectl stop
+ ${base}/${root}/jbossas/${JBOSSDIR}/bin/shutdown.sh -S -s ${IPLOCAL}
echo "Test FAILED cant start?"
exit 1
fi
curl -v http://${IPLOCAL}/myapp/toto | grep "JBossWeb"
if [ $? -ne 0 ]; then
+ sudo /usr/sbin/chroot $base/$root /opt/jboss/httpd/sbin/apachectl stop
+ ${base}/${root}/jbossas/${JBOSSDIR}/bin/shutdown.sh -S -s ${IPLOCAL}
echo "Test FAILED cant connect to Jboss?"
exit 1
fi
Show replies by date