Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 2c0ccf6e74
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (26 sloc) 0.6 kB
#!/bin/bash
export CATALINA_OPTS="-Xms512m -Xmx512m"
export CATALINA_OPTS="$CATALINA_OPTS `ruby resources/set_environment`"
env > env.log
PORT=-1
while getopts ":p:" opt; do
case $opt in
p)
PORT=$OPTARG
;;
esac
done
if [ $PORT -lt 0 ] ; then
echo "Missing or invalid port (-p)"
exit 1
fi
ruby resources/generate_server_xml $PORT
cd tomcat
./bin/catalina.sh run > ../logs/stdout.log 2> ../logs/stderr.log &
STARTED=$!
echo "$STARTED" >> ../run.pid
echo "#!/bin/bash" >> ../stop
echo "kill -9 $STARTED" >> ../stop
echo "kill -9 $PPID" >> ../stop
chmod 755 ../stop
wait $STARTED
Jump to Line
Something went wrong with that request. Please try again.