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 | |
---|
12 | STAMP=`date +'%Y%m%d%H%M'` |
---|
13 | export JAVA_HOME=/usr/lib/jvm/java-6-sun |
---|
14 | export GRAILS_HOME=/app/grails |
---|
15 | export CATALINA_OPTS="-Xms8096m -Xmx8096m -XX:MaxPermSize=2048m -XX:MaxHeapFreeRatio=70 -XX:MaxGCPauseMillis=10 -XX:+UseConcMarkSweepGC" |
---|
16 | export GRAILS_HOME=$GRAILS_INSTALL_PATH/grails |
---|
17 | export JDK_HOME=$JAVA_HOME |
---|
18 | export JAVAC=$JAVA_HOME/bin/javac |
---|
19 | export PATH=$HOME/grails/bin:$PATH |
---|
20 | |
---|
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 |
---|
24 | ./startup.sh > /dev/null |
---|
25 | fi |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.