Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-5475

Windows Service provider should use something better than net.exe - perhaps direct FFI access

    Details

    • Template:
    • Epic Link:
    • Team:
      Platform OS
    • Story Points:
      2
    • Sprint:
      Platform OS Kanban
    • CS Priority:
      Reviewed
    • CS Impact:
      CS doesn't know the deep deep details of this, but Zack remembers something about how SC didn't block, and that blocking is desirable even if it sometimes times out.

      Description

      From http://stackoverflow.com/q/33531461/18475, net.exe can timeout while waiting for a process that is in a start pending state. The Windows provider for service in Puppet uses net.exe, which returns a non-zero exit code when it times out waiting for the service, even if the service does eventually start up.

      It is believed (needs research) that Service Controller (sc.exe) doesn't suffer from this issue.

      Investigate using it instead. As a benefit, it can also create and destroy services.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sean.mcdonald Sean McDonald
                Reporter:
                rob Rob Reynolds
                QA Contact:
                Eric Thompson
              • Votes:
                1 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support