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

prunsrv failure doesn't trigger windows service recovery actions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.10
    • 1.0.11
    • Procrun
    • None
    • Windows

    Description

      This is directly related to DAEMON-244, which goes a long way towards solving the problem but still doesn't trigger Windows Service recovery actions correctly.

      With that fix applied, when the Java process terminates abnormally prunsrv reports to the Windows Service Controller that the service had terminated and passes along the non-zero exit code from the app. However, actually notifying the service controller that the service has terminated at all (even with a non-zero exit code) prevents the recovery actions from kicking in.

      From http://msdn.microsoft.com/en-us/library/ms685939(VS.85).aspx:
      "A service is considered failed when it terminates without reporting a status of SERVICE_STOPPED to the service controller"

      In order for the recovery actions to kick in, prunsrv should not notify the service controller at all when a failure is detected and should simply exit with a non-zero exit code.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jgrimm Jonathan Grimm
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: