Right now, when installing JBoss EAP as a windows service, the parameter /startup can be used, which switches the STARTUP_MODE from "manual" to "auto".
Our application needs to be started using the "delayed" mode "Automatic (delayed start)", because it needs to wait for network and other Windows services to finish, prior to starting.
Right now, the STARTUP_MODE env is passed to prunsrv.exe --Startup="%STARTUP_MODE%" in service.bat. But setting STARTUP_MODE=delayed externally before executing service.bat does not work, because in service.bat the default is reverted via
set STARTUP_MODE=manual
Technically, the prunsrv.exe does support a startup mode "delayed" and it works (we set it directly in service.bat):
https://commons.apache.org/proper/commons-daemon/procrun.html
Please fix service.bat to allow setting "delayed", e.g. either by adding an if block to check, if STARTUP_MODE was already set externally, or allow a syntax like /startup=delayed.
- is cloned by
-
JBEAP-31665 service.bat: Support for startup mode "delayed"
-
- Open
-