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

ludovicp
27.52.2010 4b7941f276e9ef07c1e026c71f669781848d8bd6
refs
author ludovicp <ludovicp@localhost>
Thursday, May 27, 2010 11:52 +0200
committer ludovicp <ludovicp@localhost>
Thursday, May 27, 2010 11:52 +0200
commit4b7941f276e9ef07c1e026c71f669781848d8bd6
tree 2f5a8e366431a92cfae09638acda5080dd7eecfe tree | zip | gz
parent 4f77e7229244f6231b3ca3931053a513ef47c1ef view | diff
Fix for issue #4554 - Potential problems using Windows Service during startup.
The fix consists on waiting in the service code to the start-ds.bat call to finish (the re-entrant one). This avoids having a race condition problem locking the file (as can happen today).
There is a new environment variable that can be configured (OPENDS_WINDOWS_SERVICE_STARTDS_WAIT). The default value is 300000 milliseconds (5 minutes). This is the maximum time in milliseconds the service code will wait for the server to start before checking directly its status.
Also update setup.bat and uninstall.bat to return an error code when called in CLI mode.
9 files modified
242 ■■■■ changed files
opendj-sdk/opends/lib/launcher_administrator.exe diff | view | raw | blame | history
opendj-sdk/opends/lib/opends_service.exe diff | view | raw | blame | history
opendj-sdk/opends/lib/winlauncher.exe diff | view | raw | blame | history
opendj-sdk/opends/resource/bin/start-ds.bat 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/setup.bat 3 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/uninstall.bat 3 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/build-tools/windows/common.c 121 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/build-tools/windows/common.h 8 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/build-tools/windows/service.c 105 ●●●● diff | view | raw | blame | history