summarylogtreecommitdiffstats
path: root/artifactory.default
blob: c5f58261218d7c25274af18282701179367993a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

#Default values
export ARTIFACTORY_HOME=/opt/artifactory
#export ARTIFACTORY_USER=artifactory
export JAVA_HOME=/usr/lib/jvm/default
#export REPLICATOR_ENABLED=true

export TOMCAT_HOME=$ARTIFACTORY_HOME/tomcat
export ARTIFACTORY_PID=/opt/artifactory/run/artifactory.pid

export JAVA_OPTIONS='-server -Xms512m -Xmx2g -Xss256k -XX:+UseG1GC -XX:OnOutOfMemoryError="kill -9 %p"'
export JAVA_OPTIONS="$JAVA_OPTIONS -Djruby.compile.invokedynamic=false -Dfile.encoding=UTF8 -Dartdist=zip -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Djava.security.egd=file:/dev/urandom"

# Timeout waiting for artifactory to start
# START_TMO=60