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

Chris Ridd
14.44.2013 560d9d6d3e159197c4b2498a098b254a255e1d83
Fix OPENDJ-617 Fix Windows services
1 files modified
8 ■■■■■ changed files
opends/resource/bin/start-ds.bat 8 ●●●●● patch | view | raw | blame | history
opends/resource/bin/start-ds.bat
@@ -24,7 +24,7 @@
rem
rem
rem      Copyright 2006-2010 Sun Microsystems, Inc.
rem      Portions Copyright 2011-2012 ForgeRock AS
rem      Portions Copyright 2011-2013 ForgeRock AS
setlocal
for %%i in (%~sf0) do set DIR_HOME=%%~dPsi..
@@ -85,7 +85,7 @@
goto exitErrorCode
:runNoDetachQuiet
echo %SCRIPT%: Run no detach  >> %LOG%
echo %SCRIPT%: Run no detach quiet >> %LOG%
echo. > "%INSTANCE_ROOT%\logs\server.out"
echo. > "%INSTANCE_ROOT%\logs\server.starting"
if exist "%INSTANCE_ROOT%\lib\set-java-args.bat %SCRIPT%" DO call "%INSTANCE_ROOT%\lib\set-java-args.bat"
@@ -104,7 +104,7 @@
goto checkStarted
:runDetachQuiet
echo %SCRIPT%: Run detach  >> %LOG%
echo %SCRIPT%: Run detach quiet >> %LOG%
echo. > "%INSTANCE_ROOT%\logs\server.out"
echo. > "%INSTANCE_ROOT%\logs\server.starting"
if exist "%INSTANCE_ROOT%\lib\set-java-args.bat" DO call "%INSTANCE_ROOT%\lib\set-java-args.bat"
@@ -138,8 +138,10 @@
goto end
:checkStarted
echo %SCRIPT%: check started >> %LOG%
"%OPENDJ_JAVA_BIN%" -client %SCRIPT_NAME_ARG% org.opends.server.core.DirectoryServer --configClass org.opends.server.extensions.ConfigFileHandler --configFile "%INSTANCE_ROOT%\config\config.ldif" --checkStartability > NUL 2>&1
if %errorlevel% == 98 goto serverStarted
if %errorlevel% == 101 goto serverStarted
goto serverNotStarted
:serverStarted