Ignore:
Timestamp:
Nov 9, 2010, 12:55:32 PM (10 years ago)
Author:
work@…
Message:
  • refactored ci script to allow other (test, www) deployments
  • refactored ci script to allow different tomcat instances
  • renamed ci script to generic deploy script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/scripts/check_tomcat.sh

    r1079 r1105  
    1010# $Rev$
    1111
     12if [ $1 ]; then
     13        # set type
     14        TYPE=$1
     15else
     16        echo "Usage: $0 <type>"
     17        echo "       where type is ci, test or www"
     18        exit;
     19fi
     20
    1221STAMP=`date +'%Y%m%d%H%M'`
    1322export JAVA_HOME=/usr/lib/jvm/java-6-sun
     
    1928export PATH=$HOME/grails/bin:$PATH
    2029
    21 if [ `ps ax|grep -i tomcat/bin/bootstrap.jar|grep -vi grep|wc -l` -lt 1 ]; then
    22         echo $STAMP tomcat seems down, restarting...
    23         cd /home/tomcat/apache-tomcat/bin
     30if [ `ps ax|grep -i tomcat-$TYPE/bin/bootstrap.jar|grep -vi grep|wc -l` -lt 1 ]; then
     31        echo $STAMP tomcat-$TYPE seems down, restarting...
     32        cd /home/tomcat/apache-tomcat-$TYPE/bin
    2433        ./startup.sh > /dev/null
    2534fi
    26 
Note: See TracChangeset for help on using the changeset viewer.