Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-31665

service.bat: Support for startup mode "delayed"

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Scripts
    • False
    • Hide

      None

      Show
      None
    • False
    • User Experience
    • JBoss Enterprise Application Platform

      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.

              lvydra Lukas Vydra
              rhn-support-gufranch Guilherme Franchi
              Guilherme Franchi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: