Commit 4ae7125e authored by iSergio's avatar iSergio
Browse files

Add configure standalone.conf

parent eee7cc29
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ FAIL="[ ${color_red}fail${color_normal} ]"

DOTSTRING=""
cols=`tput cols`
cols=$((cols / 2))
#cols=$((cols / 4))
cols=$((cols - 10))
for i in `seq 1 $cols`; do
    DOTSTRING=$DOTSTRING"."
@@ -24,9 +24,9 @@ function align_left() {

function align_echo() {
    if [[ "$1" != 0 ]]; then
        echo $FAIL
        echo -e $FAIL
        echo "$2"
    else
        echo $DONE
        echo -e $DONE
    fi
}
+10 −1
Original line number Diff line number Diff line
@@ -106,7 +106,8 @@ export PATH=${JBOSS_HOME}/bin:${PATH}' >> /etc/profile.d/jboss.sh
fi
/etc/profile.d/jboss.sh

cp standalone/*.xml /etc/kszkipo/as7/standalone
cp standalone/standalone.xml /etc/kszkipo/as7/standalone/
cp standalone/standalone.conf /opt/kszkipo/as7/bin/

# Install thirdparty modules
cp -rf modules/* ${JBOSS_HOME}/modules/system/layers/base/
@@ -205,4 +206,12 @@ result=`jboss-cli.sh --connect --commands="batch,
    run-batch"` &>/dev/null
align_echo $? $result

if ! grep -Fq "-XX:+UseParallelGC -Dsun.rmi.dgc.client.gcInterval=1800000" /opt/kszkipo/as7/bin/standalone.conf; then
    JAVA_OPTS="-XX:+UseParallelGC -Dsun.rmi.dgc.client.gcInterval=1800000 -Dsun.rmi.dgc.server.gcInterval=1800000 -XX:ParallelGCThreads=8 -Dorg.geotools.coverage.jaiext.enabled=true -Djava.library.path=/usr/local/GISCore/lib/:/usr/lib/jni/"
    echo $JAVA_OPTS >> /opt/kszkipo/as7/bin/standalone.conf

    JAVA_OPTS="-Ddozer.cfg=/etc/kszkipo/as7/standalone/_cfg_dozer -Dindicators_vso.cfg=/etc/irz/indicators_vso -Dindicators_p.cfg=/etc/irz/indicators_p -Dplanning.cfg=/etc/irz/planning -Dfile.encoding=UTF-8"
    echo $JAVA_OPTS >> /opt/kszkipo/as7/bin/standalone.conf
fi

service as7-standalone restart
+70 −0
Original line number Diff line number Diff line
## -*- shell-script -*- ######################################################
##                                                                          ##
##  JBoss Bootstrap Script Configuration                                    ##
##                                                                          ##
##############################################################################

#
# This file is optional; it may be removed if not needed.
#

#
# Specify the maximum file descriptor limit, use "max" or "maximum" to use
# the default, as queried by the system.
#
# Defaults to "maximum"
#
#MAX_FD="maximum"

#
# Specify the profiler configuration file to load.
#
# Default is to not load profiler configuration file.
#
#PROFILER=""

#
# Specify the location of the Java home directory.  If set then $JAVA will
# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".
#
#JAVA_HOME="/opt/java/jdk"

#
# Specify the exact Java VM executable to use.
#
#JAVA=""

if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
   JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman"
fi

# Uncomment the following line to prevent manipulation of JVM options
# by shell scripts.
#
#PRESERVE_JAVA_OPTS=true

#
# Specify options to pass to the Java VM.
#
if [ "x$JAVA_OPTS" = "x" ]; then
   JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true"
   JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
else
   echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"
fi

# Sample JPDA settings for remote socket debugging
#JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"

# Sample JPDA settings for shared memory debugging
#JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=jboss"

# Uncomment to not use JBoss Modules lockless mode
#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.lockless=false"

# Uncomment to gather JBoss Modules metrics
#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.metrics=true"

SERVER_OPTS="$SERVER_OPTS -Djboss.server.config.dir=/etc/kszkipo/as7/standalone"
SERVER_OPTS="$SERVER_OPTS -Djboss.server.log.dir=/var/log/kszkipo/as7/standalone"
SERVER_OPTS="$SERVER_OPTS -Djboss.server.temp.dir=/tmp/kszkipo/as7/standalone"