mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
27.06.2006 3aea921de15933628ff1ac9f9b234a16b55ead35
Make a number of changes to administrative batch files for Windows systems:

- Update the start-ds.bat file so that it starts in the background rather than
the foreground, and will not exit until the server has actually started.
Issue #590.

- Update all of the batch files to explicitly set the PATH for better
consistency and security. Issue #607.

- Consolidate a lot of the content into _client-script.bat and
_server-script.bat files to make the batch files more maintainable.
Issue #873.
2 files added
19 files modified
617 ■■■■ changed files
opends/resource/bin/_client-script.bat 68 ●●●●● patch | view | raw | blame | history
opends/resource/bin/_server-script.bat 68 ●●●●● patch | view | raw | blame | history
opends/resource/bin/backup.bat 29 ●●●●● patch | view | raw | blame | history
opends/resource/bin/configure-ds.bat 28 ●●●●● patch | view | raw | blame | history
opends/resource/bin/encode-password.bat 28 ●●●●● patch | view | raw | blame | history
opends/resource/bin/export-ldif.bat 29 ●●●●● patch | view | raw | blame | history
opends/resource/bin/import-ldif.bat 29 ●●●●● patch | view | raw | blame | history
opends/resource/bin/ldapcompare.bat 26 ●●●●● patch | view | raw | blame | history
opends/resource/bin/ldapdelete.bat 26 ●●●●● patch | view | raw | blame | history
opends/resource/bin/ldapmodify.bat 26 ●●●●● patch | view | raw | blame | history
opends/resource/bin/ldappasswordmodify.bat 26 ●●●●● patch | view | raw | blame | history
opends/resource/bin/ldapsearch.bat 26 ●●●●● patch | view | raw | blame | history
opends/resource/bin/ldif-diff.bat 26 ●●●●● patch | view | raw | blame | history
opends/resource/bin/ldifmodify.bat 26 ●●●●● patch | view | raw | blame | history
opends/resource/bin/ldifsearch.bat 26 ●●●●● patch | view | raw | blame | history
opends/resource/bin/makeldif.bat 29 ●●●●● patch | view | raw | blame | history
opends/resource/bin/restore.bat 29 ●●●●● patch | view | raw | blame | history
opends/resource/bin/start-ds.bat 9 ●●●●● patch | view | raw | blame | history
opends/resource/bin/stop-ds.bat 30 ●●●●● patch | view | raw | blame | history
opends/resource/bin/verify-index.bat 29 ●●●●● patch | view | raw | blame | history
opends/resource/setup.bat 4 ●●●● patch | view | raw | blame | history
opends/resource/bin/_client-script.bat
New file
@@ -0,0 +1,68 @@
@echo off
rem CDDL HEADER START
rem
rem The contents of this file are subject to the terms of the
rem Common Development and Distribution License, Version 1.0 only
rem (the "License").  You may not use this file except in compliance
rem with the License.
rem
rem You can obtain a copy of the license at
rem trunk/opends/resource/legal-notices/OpenDS.LICENSE
rem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
rem See the License for the specific language governing permissions
rem and limitations under the License.
rem
rem When distributing Covered Code, include this CDDL HEADER in each
rem file and include the License file at
rem trunk/opends/resource/legal-notices/OpenDS.LICENSE.  If applicable,
rem add the following below this CDDL HEADER, with the fields enclosed
rem by brackets "[]" replaced with your own identifying * information:
rem      Portions Copyright [yyyy] [name of copyright owner]
rem
rem CDDL HEADER END
rem
rem
rem      Portions Copyright 2006 Sun Microsystems, Inc.
rem This script is used to invoke various server-side processes.  It should not
rem be invoked directly by end users.
setlocal
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
if "%OPENDS_INVOKE_CLASS%" == "" goto noInvokeClass
goto checkJavaBin
:noInvokeClass
echo Error:  OPENDS_INVOKE_CLASS environment variable is not set.
goto end
:checkJavaBin
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
set PATH=%SystemRoot%
%JAVA_BIN% %JAVA_ARGS% %OPENDS_INVOKE_CLASS% %*
:end
opends/resource/bin/_server-script.bat
New file
@@ -0,0 +1,68 @@
@echo off
rem CDDL HEADER START
rem
rem The contents of this file are subject to the terms of the
rem Common Development and Distribution License, Version 1.0 only
rem (the "License").  You may not use this file except in compliance
rem with the License.
rem
rem You can obtain a copy of the license at
rem trunk/opends/resource/legal-notices/OpenDS.LICENSE
rem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
rem See the License for the specific language governing permissions
rem and limitations under the License.
rem
rem When distributing Covered Code, include this CDDL HEADER in each
rem file and include the License file at
rem trunk/opends/resource/legal-notices/OpenDS.LICENSE.  If applicable,
rem add the following below this CDDL HEADER, with the fields enclosed
rem by brackets "[]" replaced with your own identifying * information:
rem      Portions Copyright [yyyy] [name of copyright owner]
rem
rem CDDL HEADER END
rem
rem
rem      Portions Copyright 2006 Sun Microsystems, Inc.
rem This script is used to invoke various server-side processes.  It should not
rem be invoked directly by end users.
setlocal
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
if "%OPENDS_INVOKE_CLASS%" == "" goto noInvokeClass
goto checkJavaBin
:noInvokeClass
echo Error:  OPENDS_INVOKE_CLASS environment variable is not set.
goto end
:checkJavaBin
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
set PATH=%SystemRoot%
%JAVA_BIN% %JAVA_ARGS% %OPENDS_INVOKE_CLASS% --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %*
:end
opends/resource/bin/backup.bat
@@ -27,31 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
cd %DIR_HOME%
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.BackUpDB --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.BackUpDB"
call %~dP0\_server-script.bat %*
opends/resource/bin/configure-ds.bat
@@ -27,30 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
cd %DIR_HOME%
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.ConfigureDS --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.ConfigureDS"
call %~dP0\_server-script.bat %*
opends/resource/bin/encode-password.bat
@@ -27,30 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
cd %DIR_HOME%
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.EncodePassword --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.EncodePassword"
call %~dP0\_server-script.bat %*
opends/resource/bin/export-ldif.bat
@@ -27,31 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
cd %DIR_HOME%
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.ExportLDIF --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.ExportLDIF"
call %~dP0\_server-script.bat %*
opends/resource/bin/import-ldif.bat
@@ -27,31 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
cd %DIR_HOME%
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.ImportLDIF --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.ImportLDIF"
call %~dP0\_server-script.bat %*
opends/resource/bin/ldapcompare.bat
@@ -27,28 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.LDAPCompare %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.LDAPCompare"
call %~dP0\_client-script.bat %*
opends/resource/bin/ldapdelete.bat
@@ -27,28 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.LDAPDelete %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.LDAPDelete"
call %~dP0\_client-script.bat %*
opends/resource/bin/ldapmodify.bat
@@ -27,28 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.LDAPModify %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.LDAPModify"
call %~dP0\_client-script.bat %*
opends/resource/bin/ldappasswordmodify.bat
@@ -27,28 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.LDAPPasswordModify %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.LDAPPasswordModify"
call %~dP0\_client-script.bat %*
opends/resource/bin/ldapsearch.bat
@@ -27,28 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.LDAPSearch %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.LDAPSearch"
call %~dP0\_client-script.bat %*
opends/resource/bin/ldif-diff.bat
@@ -27,28 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.LDIFDiff %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.LDIFDiff"
call %~dP0\_client-script.bat %*
opends/resource/bin/ldifmodify.bat
@@ -27,28 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.LDIFModify -c "%DIR_HOME%\config\config.ldif" %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.LDIFModify"
call %~dP0\_server-script.bat %*
opends/resource/bin/ldifsearch.bat
@@ -27,28 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.LDIFSearch %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.LDIFSearch"
call %~dP0\_client-script.bat %*
opends/resource/bin/makeldif.bat
@@ -27,31 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
cd %DIR_HOME%
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.makeldif.MakeLDIF --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" --resourcePath "%DIR_HOME%\config\MakeLDIF" %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.makeldif.MakeLDIF"
call %~dP0\_server-script.bat --resourcePath "%~dP0..\config\MakeLDIF" %*
opends/resource/bin/restore.bat
@@ -27,31 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
cd %DIR_HOME%
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.RestoreDB --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.RestoreDB"
call %~dP0\_server-script.bat %*
opends/resource/bin/start-ds.bat
@@ -36,7 +36,7 @@
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
set JAVA_BIN=%JAVA_HOME%\bin\java.exe
goto setClassPath
:noJavaHome
@@ -48,9 +48,12 @@
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
cd %DIR_HOME%
set PATH=%SystemRoot%
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.core.DirectoryServer --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %*
if not exist "%DIR_HOME%\logs\server.out" echo. > "%DIR_HOME%\logs\server.out"
if not exist "%DIR_HOME%\logs\server.starting" echo. > "%DIR_HOME%\logs\server.starting"
start "OpenDS %DIR_HOME%" /B "%JAVA_BIN%" %JAVA_ARGS% org.opends.server.core.DirectoryServer --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %*
"%JAVA_BIN%" -Xms8M -Xmx8M org.opends.server.tools.WaitForFileDelete --targetFile "%DIR_HOME%\logs\server.starting" --logFile "%DIR_HOME%\logs\server.out"
:end
opends/resource/bin/stop-ds.bat
@@ -27,31 +27,5 @@
setlocal
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
cd %DIR_HOME%
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.StopDS %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.StopDS"
call %~dP0\_client-script.bat %*
opends/resource/bin/verify-index.bat
@@ -27,31 +27,6 @@
setlocal
set DIR_HOME=%~dP0..
set INSTANCE_ROOT=%DIR_HOME%
if "%JAVA_BIN%" == "" goto noJavaBin
goto setClassPath
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo        Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
cd %DIR_HOME%
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.VerifyIndex --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" %*
:end
set OPENDS_INVOKE_CLASS="org.opends.server.tools.VerifyIndex"
call %~dP0\_server-script.bat %*
opends/resource/setup.bat
@@ -47,9 +47,9 @@
:setClassPath
FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x
cd %DIR_HOME%
set PATH=%SystemRoot%
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.InstallDS --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" -P setup.bat %*
%JAVA_BIN% %JAVA_ARGS% org.opends.server.tools.InstallDS --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%DIR_HOME%\config\config.ldif" -P setup.bat %*
:end