All Downloads are FREE. Search and download functionalities are using the official Maven repository.

server.crossdata-env.sh Maven / Gradle / Ivy

#!/bin/bash

# CROSSDATA_CONF is global environment variable
# JAVA_OPTS
# JSVCCMD
# JAVA_HOME
if [ -z $CROSSDATA_HOME ];then
	CROSSDATA_HOME="$(cd "`dirname "$0"`"/..; pwd)"
	#CROSSDATA_HOME=/opt/sds/crossdata
fi 
if [ -z $CROSSDATA_LOGS ];then
	CROSSDATA_LOGS=$(pwd)
fi 
# CROSSDATA_LIB
CROSSDATA_LIB="${CROSSDATA_HOME}/lib"
# CROSSDATA_BIN
CROSSDATA_BIN="${CROSSDATA_HOME}/bin"
# CROSSDATA_LOG_OUT
CROSSDATA_LOG_OUT="${CROSSDATA_LOGS}/crossdata-server.out"
# CROSSDATA_LOG_ERROR
CROSSDATA_LOG_ERR="${CROSSDATA_LOGS}/crossdata-server.err"
# CROSSDATA_SERVER_USER
CROSSDATA_SERVER_USER="root"
# CROSSDATA_SERVER_PID
CROSSDATA_SERVER_PID="${CROSSDATA_HOME}/crossdata-server.pid"

CROSSDATA_CONF="/etc/sds/crossdata/server"

if [ -z "$CROSSDATA_JAVA_OPTS" ];then
        CROSSDATA_JAVA_OPTS="-Xmx2048m -Xms2048m"
fi

echo "CROSSDATA_HOME = $CROSSDATA_HOME"
echo "CROSSDATA_CONF = $CROSSDATA_CONF"
echo "CROSSDATA_LIB  = $CROSSDATA_LIB"
echo "CROSSDATA_BIN  = $CROSSDATA_BIN"
echo "CROSSDATA_LOG_OUT  = $CROSSDATA_LOG_OUT"
echo "CROSSDATA_LOG_ERR  = $CROSSDATA_LOG_ERR"
echo "CROSSDATA_SERVER_USER  = $CROSSDATA_SERVER_USER"
echo "CROSSDATA_SERVER_PID  = $CROSSDATA_SERVER_PID"
echo "CROSSDATA_JAVA_OPTS  = $CROSSDATA_JAVA_OPTS"

export CROSSDATA_LOGS
export CROSSDATA_HOME
export CROSSDATA_LIB
export CROSSDATA_BIN
export CROSSDATA_LOG_OUT
export CROSSDATA_LOG_ERR
export CROSSDATA_SERVER_USER
export CROSSDATA_SERVER_PID
export CROSSDATA_JAVA_OPTS




© 2015 - 2024 Weber Informatics LLC | Privacy Policy