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

ludovicp
27.52.2010 98e131bb4dde9eb6e2befce74256f5caa2eb093b
refs
author ludovicp <ludovicp@localhost>
Thursday, May 27, 2010 11:52 +0200
committer ludovicp <ludovicp@localhost>
Thursday, May 27, 2010 11:52 +0200
commit98e131bb4dde9eb6e2befce74256f5caa2eb093b
tree 0b97d4aa9b1f682c8859f5d9b31ef568fb6da1f2 tree | zip | gz
parent 3bcc70c3d28164434f018c3c8e9f775be7100708 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
opends/lib/launcher_administrator.exe diff | view | raw | blame | history
opends/lib/opends_service.exe diff | view | raw | blame | history
opends/lib/winlauncher.exe diff | view | raw | blame | history
opends/resource/bin/start-ds.bat 2 ●●● diff | view | raw | blame | history
opends/resource/setup.bat 3 ●●●● diff | view | raw | blame | history
opends/resource/uninstall.bat 3 ●●●● diff | view | raw | blame | history
opends/src/build-tools/windows/common.c 121 ●●●●● diff | view | raw | blame | history
opends/src/build-tools/windows/common.h 8 ●●●● diff | view | raw | blame | history
opends/src/build-tools/windows/service.c 105 ●●●● diff | view | raw | blame | history