_client-script.sh revision 536
479N/A# The contents of this file are subject to the terms of the 479N/A# Common Development and Distribution License, Version 1.0 only 479N/A# (the "License"). You may not use this file except in compliance 479N/A# You can obtain a copy of the license at 479N/A# See the License for the specific language governing permissions 479N/A# and limitations under the License. 479N/A# When distributing Covered Code, include this CDDL HEADER in each 479N/A# file and include the License file at 479N/A# add the following below this CDDL HEADER, with the fields enclosed 479N/A# by brackets "[]" replaced with your own identifying * information: 479N/A# Portions Copyright [yyyy] [name of copyright owner] 479N/A# Portions Copyright 2006 Sun Microsystems, Inc. 479N/A# This script is used to invoke various client-side processes. It should not 479N/A# be invoked directly by end users. 479N/Aif test -z
"${OPENDS_INVOKE_CLASS}" 479N/A echo "ERROR: OPENDS_INVOKE_CLASS environment variable is not set." 479N/A# See if JAVA_HOME is set. If not, then see if there is a java executable in 479N/A# the path and try to figure it out. 479N/Aif test -z
"${JAVA_BIN}" 479N/A if test -z
"${JAVA_HOME}" 479N/A echo "Please set JAVA_HOME to the root of a Java 5.0 installation." 479N/A# Explicitly set the PATH, LD_LIBRARY_PATH, LD_PRELOAD, and other important 479N/A# system environment variables for security and compatibility reasons. 479N/A# Capture the current working directory so that we can change to it later. 479N/A# Then capture the location of this script and the Directory Server instance 479N/A# root so that we can use them to create appropriate paths. 479N/A# Configure the appropriate CLASSPATH. 479N/A# Launch the appropriate server utility.