Navigation Menu

Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Don't lose the PID file if the workspace is lost.
Browse files Browse the repository at this point in the history
  • Loading branch information
buckett committed Mar 12, 2013
1 parent e42b399 commit 52616f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common.sh
@@ -1,7 +1,9 @@
# Setup common things for both the pre and post scripts.

[ "$WORKSPACE" ] || WORKSPACE=`pwd`
export CATALINA_PID="$WORKSPACE/target/catalina-buckett.pid"
# We keep this outside the workspace so that if the workspace gets wiped out
# we can still terminate the process
export CATALINA_PID="/tmp/${JOB_NAME}-catalina.pid"
export CATALINA_OPTS="-server -Xms256m -Xmx1024m -XX:NewSize=192m -XX:MaxNewSize=384m -XX:PermSize=192m -XX:MaxPermSize=384m -Djava.awt.headless=true -Dsun.net.inetaddr.ttl=0 -Dsun.lang.ClassLoader.allowArraySyntax=true"
export CATALINA_HOME="$WORKSPACE/target/tomcat/"
export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=$CATALINA_HOME/solr/"
Expand Down

0 comments on commit 52616f8

Please sign in to comment.