Author: jfrederic.clere(a)jboss.com
Date: 2008-02-29 09:51:01 -0500 (Fri, 29 Feb 2008)
New Revision: 1402
Modified:
trunk/build/unix/buildtest.rhel-httpd.sh
Log:
Start/Stop the "hpux" password daemon too.
Modified: trunk/build/unix/buildtest.rhel-httpd.sh
===================================================================
--- trunk/build/unix/buildtest.rhel-httpd.sh 2008-02-29 14:40:13 UTC (rev 1401)
+++ trunk/build/unix/buildtest.rhel-httpd.sh 2008-02-29 14:51:01 UTC (rev 1402)
@@ -53,6 +53,13 @@
util/confssl.sh $base $root $build_cache_dir ${IPLOCAL}
fi
+# start pwgrd-jfclere if needed
+pid=""
+if [ -f $base/$root/usr/sbin/pwgrd-jfclere ] ; then
+ sudo /usr/sbin/chroot $base/$root /usr/sbin/pwgrd-jfclere
+ pid=`ps -ef | grep pwgrd-jfclere | grep -v grep |awk ' { print $2 }'`
+fi
+
# Test it.
sudo /usr/sbin/chroot $base/$root /opt/jboss/httpd/sbin/apachectl start
sleep 65
@@ -60,6 +67,9 @@
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}
+ if [ "x$pid" != "x" ]; then
+ sudo kill -15 $pid
+ fi
echo "Test FAILED cant start?"
exit 1
fi
@@ -68,6 +78,9 @@
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}
+ if [ "x$pid" != "x" ]; then
+ sudo kill -15 $pid
+ fi
echo "Test FAILED cant connect to Jboss?"
exit 1
fi
@@ -77,6 +90,9 @@
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}
+ if [ "x$pid" != "x" ]; then
+ sudo kill -15 $pid
+ fi
echo "Test FAILED cant use SSL?"
exit 1
fi
@@ -84,6 +100,9 @@
# Stop it.
sudo /usr/sbin/chroot $base/$root /opt/jboss/httpd/sbin/apachectl stop
${base}/${root}/jbossas/${JBOSSDIR}/bin/shutdown.sh -S -s ${IPLOCAL}
+if [ "x$pid" != "x" ]; then
+ sudo kill -15 $pid
+fi
sleep 30
curl -v http://${IPLOCAL}
if [ $? -eq 0 ]; then
Show replies by date