91 lines
3.1 KiB
Bash
91 lines
3.1 KiB
Bash
#!/bin/sh
|
|
|
|
# WARNING: This file is created by the Configuration Wizard.
|
|
# Any changes to this script may be lost when adding extensions to this configuration.
|
|
|
|
# *************************************************************************
|
|
# This script is used to start WebLogic Server for the domain in the
|
|
# current working directory. This script simply sets the SERVER_NAME
|
|
# variable and starts server.
|
|
#
|
|
# To create your own start script for your domain, all you need to set is
|
|
# SERVER_NAME, then starts the server.
|
|
#
|
|
# Other variables that startWLS takes are:
|
|
#
|
|
# WLS_USER - cleartext user for server startup
|
|
# WLS_PW - cleartext password for server startup
|
|
# PRODUCTION_MODE - true for production mode servers, false for
|
|
# development mode
|
|
# JAVA_OPTIONS - Java command-line options for running the server. (These
|
|
# will be tagged on to the end of the JAVA_VM and MEM_ARGS)
|
|
# JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
|
|
# -hotspot, etc.)
|
|
# MEM_ARGS - The variable to override the standard memory arguments
|
|
# passed to java
|
|
#
|
|
# For additional information, refer to the WebLogic Server Administration
|
|
# Console Online Help(/ConsoleHelp/startstop.html)
|
|
# *************************************************************************
|
|
|
|
# Initialize the common environment.
|
|
|
|
WL_HOME="/product/bea/wlserver_10.3"
|
|
|
|
PRODUCTION_MODE="true"
|
|
export PRODUCTION_MODE
|
|
|
|
JAVA_HOME="/usr/java6/jdk1.6.0_45"
|
|
|
|
# Call commEnv here AFTER setting the java_vendor to get common environmental settings.
|
|
|
|
#. ${WL_HOME}/common/bin/commEnv.sh
|
|
|
|
# Set SERVER_NAME to the name of the server you wish to start up.
|
|
|
|
SERVER_NAME="admin"
|
|
export SERVER_NAME
|
|
|
|
CLASSPATH="${WEBLOGIC_CLASSPATH}:${JAVA_HOME}/jre/lib/rt.jar:${WL_HOME}/server/lib/webservices.jar:${CLASSPATH}"
|
|
|
|
CLASSPATH="${CLASSPATH}:/gnpapp/lib/dbcfx-common.jar:"
|
|
|
|
export CLASSPATH
|
|
|
|
#gnp settings begin
|
|
|
|
THIS_PATH=`dirname $0`
|
|
. /gnpapp/script/setEnv.sh
|
|
USER_MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m"
|
|
|
|
export USER_MEM_ARGS
|
|
|
|
JAVA_OPTIONS=
|
|
#JAVA_OPTIONS="-Dweblogic.Name="${SERVER_NAME}" ${JAVA_OPTIONS} "
|
|
#JAVA_OPTIONS="-Dweblogic.ProductionModeEnabled="${PRODUCTION_MODE}" ${JAVA_OPTIONS} "
|
|
#JAVA_OPTIONS="-Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" ${JAVA_OPTIONS} "
|
|
JAVA_OPTIONS="${JAVA_OPTIONS} -Dserver_clear_name=admin@GNP"
|
|
JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.system.BootIdentityFile=${THIS_PATH}/BootIdentity.properties"
|
|
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.security.egd=file:/dev/./urandom"
|
|
JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.security.SSL.enableJSSE=true"
|
|
# puntamento alla libreria i686 per escludere gli errori su wlfileio su JMS persistent store
|
|
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.library.path=/product/bea/wlserver_10.3/server/native/linux/i686"
|
|
|
|
#log file
|
|
NOW=$(date '+%Y%m%d%H%M%S')
|
|
mv ${GNP_LOG_ADMINSERVER_FILE} ${GNP_LOG_ADMINSERVER_FILE}.$NOW
|
|
|
|
#gnp settings end
|
|
|
|
# Call WebLogic Server
|
|
|
|
echo "Starting admin@GNP ..."
|
|
echo
|
|
echo CLASSPATH="${CLASSPATH}"
|
|
echo
|
|
echo PATH="${PATH}"
|
|
echo
|
|
echo JAVA_OPTIONS="${JAVA_OPTIONS}"
|
|
echo
|
|
|
|
nohup ${DOMAIN_HOME}/bin/startWebLogic.sh $* >> ${GNP_LOG_ADMINSERVER_FILE} 2>&1 & |