Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-9230

puppetlabs-service : Windows task cannot restart services with dependencies

    Details

    • Template:
      MODULES Bug Template
    • Acceptance Criteria:
      Hide

      The Bolt task the service module has a parameter allowing the user to force a service stop or restart.

      Show
      The Bolt task the service module has a parameter allowing the user to force a service stop or restart.
    • Team:
      Modules
    • Method Found:
      Inspection
    • QA Risk Assessment:
      Needs Assessment

      Description

      On Windows, services can have hierarchical relationships of dependency. A common one is the SQLAGENT service will often be dependent on the MSSQLSERVER service.

      When this happens, attempts to restart the MSSQLSERVER service will result in an error that it has a dependent service, the agent service. To overcome this obstacle, you can pass the force parameter to the Restart or Stop service cmdlets, and OS will heed your command and restart the service.

      The problem is that the current implementation of the Bolt task provides no parameter to pass the parameter, and so it becomes impossible to restart a service like this unless you know ahead of time all of the services that depend on it, and manually go stop them first, and then restart the one you are actually interested in, and then go back and restart the ones you stopped earlier.

      The Bolt task should instead simply take a 'force' parameter to allow a user to restart the service directly.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  william.hurt William Hurt
                  Reporter:
                  william.hurt William Hurt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: