Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-258

prunsrv to block until start method returns

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.0.10
    • 1.0.11
    • Procrun
    • None
    • Windows all versions

    Description

      Currently, when starting a windows service from the service control panel based on prunsrv using the JVM.dll the start method is called in a separate thread. Upon calling this thread, the service is marked as "started" in the service control panel. This is confusing, as if something goes wrong in the program start-up sequence (e.g. a database connection is unavailable) then the program will fail to start successfully but the user will not get any indication of this (they have to press "refresh" in the windows services window to see the service failed to start).
      It would be better to have an option to report the "service" as "starting" while the "start" method is running and only when the method returns, mark the service as "started" or "stopped" depending on a return code from the "start" method.

      Attachments

        Issue Links

          Activity

            People

              mturk@apache.org Mladen Turk
              ibeaumont Ian Beaumont
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 168h
                  168h
                  Remaining:
                  Remaining Estimate - 168h
                  168h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified