start-ds revision 1024
16309N/A# The contents of this file are subject to the terms of the 16309N/A# Common Development and Distribution License, Version 1.0 only 16309N/A# (the "License"). You may not use this file except in compliance 16309N/A# You can obtain a copy of the license at 16309N/A# See the License for the specific language governing permissions 16309N/A# and limitations under the License. 16309N/A# When distributing Covered Code, include this CDDL HEADER in each 16309N/A# file and include the License file at 16309N/A# add the following below this CDDL HEADER, with the fields enclosed 16309N/A# by brackets "[]" replaced with your own identifying information: 16309N/A# Portions Copyright [yyyy] [name of copyright owner] 16309N/A# Portions Copyright 2006-2007 Sun Microsystems, Inc. 16309N/A# Capture the current working directory so that we can change to it later. 16309N/A# Then capture the location of this script and the Directory Server instance 16309N/A# root so that we can use them to create appropriate paths. 16309N/A# See if JAVA_HOME is set. If not, then see if there is a java executable in 16309N/A# the path and try to figure it out. 16309N/A echo "Please set JAVA_HOME to the root of a Java 5.0 installation." 16309N/A# Explicitly set the PATH, LD_LIBRARY_PATH, LD_PRELOAD, and other important 16309N/A# system environment variables for security and compatibility reasons. 16309N/A# Configure the appropriate CLASSPATH. 16309N/A# Specify the locations of important files that may be used when the server 16309N/A# Specify the script name so that it may be provided in command-line usage. 16309N/A# See if the provided set of arguments were sufficient for us to be able to 16309N/A# start the server or perform the requested operation. An exit code of 99 16309N/A# means that it should be possible to start the server. An exit code of 98 16309N/A# means that the server is already running and we shouldn't try to start it. 16309N/A# An exit code of anything else means that we're not trying to start the server 16309N/A# and we can just exit with that exit code. 16309N/A # an error or the server is already started. Just return the code provided