aboutsummaryrefslogtreecommitdiffstats
path: root/etherpad/bin/etherpad.default
blob: 1943cdc16c495bc448b1aee87b390dcf9f7618eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Default settings for etherpad. This file is sourced by /bin/sh from
# /etc/init.d/etherpad.

# User and group to run as
ETHERPAD_USER="etherpad"
ETHERPAD_GROUP="etherpad"

# Setup paths
ETHERPAD_HOME=/usr/local/etherpad
JAVA=/usr/bin/java
JAVA_HOME=/usr/lib/jvm/java-6-openjdk
SCALA=/usr/bin/scala
SCALA_HOME=/usr/share/java
MYSQL_CONNECTOR_JAR=/usr/share/java/mysql-connector-java.jar

# Maximum amount of RAM to allocate
MXRAM="1G"

# Classpath
CP="appjet-eth-dev.jar:data"
for f in "$ETHERPAD_HOME/etherpad/lib/*.jar"; do
    CP="$CP:$f"
done

# Java options
JAVA_OPTS=""

# Config file
CFGFILE=/etc/etherpad/local.properties

# Default options
ETHERPAD_OPTS="-classpath $CP \
               -server \
               -Xmx${MXRAM} \
               -Xms${MXRAM} \
               -Djava.awt.headless=true \
               -XX:MaxGCPauseMillis=500 \
               -XX:+UseConcorMarkSweepGC \
               -XX:CMSIncrementalSafetyFactor=50 \
               -XX:+PrintGCDetails \
               -XX:+PrintGCTimeStamps \
               -Xloggc:./data/logs/backend/jvm-gc.log \
               -Dappjet.jmxremote=true \
               $JAVA_OPTS \
               net.appjet.oui.main \
               --configFile=$CFGFILE"