source: misc/scripts/check_tomcat.sh @ 1079

Last change on this file since 1079 was 1079, checked in by work@…, 10 years ago
  • add check tomcat script
  • Property svn:executable set to *
File size: 750 bytes
Line 
1#!/bin/sh
2# check of tomcat is running
3#
4# @Author       Jeroen Wesbeek <J****n.W******@gmail.com>
5# @Since        20100916
6#
7# Revision Information:
8# $Author$
9# $Date$
10# $Rev$
11
12STAMP=`date +'%Y%m%d%H%M'`
13export JAVA_HOME=/usr/lib/jvm/java-6-sun
14export GRAILS_HOME=/app/grails
15export CATALINA_OPTS="-Xms8096m -Xmx8096m -XX:MaxPermSize=2048m -XX:MaxHeapFreeRatio=70 -XX:MaxGCPauseMillis=10 -XX:+UseConcMarkSweepGC"
16export GRAILS_HOME=$GRAILS_INSTALL_PATH/grails
17export JDK_HOME=$JAVA_HOME
18export JAVAC=$JAVA_HOME/bin/javac
19export PATH=$HOME/grails/bin:$PATH
20
21if [ `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
24        ./startup.sh > /dev/null
25fi
26
Note: See TracBrowser for help on using the repository browser.