#!/bin/bash
# chkconfig: 2345 10 90
#set JAVA environment
export JAVA_HOME=/opt/jdk
export JRE_HOME=/opt/jdk/jre
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
sh /opt/tomcat-gitblit/bin/shutdown.sh &

sleep 10

sh /opt/tomcat-gitblit/bin/startup.sh &
