| | |
| | | SCRIPT_NAME_ARG="-Dorg.opends.server.scriptName=stop-ds" |
| | | export SCRIPT_NAME_ARG |
| | | |
| | | # Test that the provided JDK is 1.5 compatible. |
| | | if test -z "${JAVA_ARGS}" |
| | | then |
| | | "${JAVA_BIN}" org.opends.server.tools.InstallDS -t 2> /dev/null |
| | | if test ${?} -ne 0 |
| | | then |
| | | echo "ERROR: The detected Java version could not be used. Please set " |
| | | echo " JAVA_HOME to the root of a Java 5.0 installation." |
| | | exit 1 |
| | | fi |
| | | else |
| | | "${JAVA_BIN}" ${JAVA_ARGS} org.opends.server.tools.InstallDS -t 2> /dev/null |
| | | if test ${?} -ne 0 |
| | | then |
| | | echo "ERROR: The detected Java version could not be used with the specified" |
| | | echo "Java arguments. Please set JAVA_HOME to the root of a Java 5.0 installation." |
| | | exit 1 |
| | | fi |
| | | fi |
| | | |
| | | "${JAVA_BIN}" ${JAVA_ARGS} ${SCRIPT_NAME_ARG} \ |
| | | org.opends.server.tools.StopDS --checkStoppability "${@}" |