Changeset 1105 for misc/scripts/check_tomcat.sh
- Timestamp:
- Nov 9, 2010, 12:55:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/scripts/check_tomcat.sh
r1079 r1105 10 10 # $Rev$ 11 11 12 if [ $1 ]; then 13 # set type 14 TYPE=$1 15 else 16 echo "Usage: $0 <type>" 17 echo " where type is ci, test or www" 18 exit; 19 fi 20 12 21 STAMP=`date +'%Y%m%d%H%M'` 13 22 export JAVA_HOME=/usr/lib/jvm/java-6-sun … … 19 28 export PATH=$HOME/grails/bin:$PATH 20 29 21 if [ `ps ax|grep -i tomcat /bin/bootstrap.jar|grep -vi grep|wc -l` -lt 1 ]; then22 echo $STAMP tomcat seems down, restarting...23 cd /home/tomcat/apache-tomcat /bin30 if [ `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 24 33 ./startup.sh > /dev/null 25 34 fi 26
Note: See TracChangeset
for help on using the changeset viewer.