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

Enhance Windows Service Provider to handle dependent services

    Details

    • Template:
    • Team:
      Platform OS
    • Story Points:
      2
    • CS Priority:
      Reviewed

      Description

      Coming from a discussion at https://groups.google.com/forum/#!msg/puppet-users/-N3z97DR63c/CMFZu4Uw7JYJ :

      I'm sending a refresh event to a class containing this declaration.....

        service { ['Sentinel RMS License Manager', 'Micro Focus XDB Server for ETD 2.2', 'Micro Focus CES daemon']:
           ensure => 'running',
           enable => 'true',
        }
      

      This results in the follow Windows error embedded in the puppet debug output.....

      Error: /Stage[main]/somewhere::Init2/Service[Sentinel RMS License Manager]: Cannot stop Sentinel RMS License Manager, error was: Execution of 'C:/Windows/system32/net.exe stop Sentinel RMS License Manager' returned 4294967295: The following services are dependent on the Sentinel RMS License Manager service.
      Stopping the Sentinel RMS License Manager service will also stop these services.
       
         Micro Focus CES daemon
       
      Do you want to continue this operation? (Y/N) [N]:
      No valid response was provided.
      

      i.e. To refresh the License Manager, I also need to refresh "Micro Focus CES daemon"

      I suppose chaining each service in turn ensure => stopped, then chaining each again ensure => running would do the trick. Bit messy however.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rob Rob Reynolds
                QA Contact:
                Eric Thompson
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support