Ensure a Windows service is running

This version is out of date. For current versions, see Puppet Enterprise support lifecycle.

There are often services that you always want running in your infrastructure.

To have Puppet ensure that a service is running, use the following code:
service { '<service name>':
       ensure => 'running'


For example, the following manifest code ensures the  Windows Time service is running:
service { 'w32time':
  ensure => 'running'
See an issue? Please file a JIRA ticket in our [DOCUMENTATION] project
Puppet sites use proprietary and third-party cookies. By using our sites, you agree to our cookie policy.