summaryrefslogtreecommitdiffstats
path: root/test/util/autoload.rb
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2011-07-26 15:59:45 -0700
committerNick Lewis <nick@puppetlabs.com>2011-07-26 16:41:21 -0700
commit12d0018f93e5a72a728c6decffb351a693a86344 (patch)
treef71d9ec15fb3359cef488971765944a673cf5801 /test/util/autoload.rb
parentf5e8dbef9e16bf05e4c05a43407e94027faa2410 (diff)
downloadpuppet-12d0018f93e5a72a728c6decffb351a693a86344.tar.gz
puppet-12d0018f93e5a72a728c6decffb351a693a86344.tar.xz
puppet-12d0018f93e5a72a728c6decffb351a693a86344.zip
(#8272) Allow disabled Windows services to be started
Because Windows allows a service to be both running and disabled, we now support that capability. If a service is explicitly requested to be running and disabled, we will set it to manual start if necessary, start it, and then disable it. If the service is requested to be running and enabled, we will now enable it before attempting to start it (previously, this would simply try to start it and fail). The exception to this rule is a service which is disabled, and for which we are not managing the enable property. In that case, we assume that some other authority has disabled the service, and respect that, failing to start. Thus, if the user actually wants a service to be running and disabled, they must explicitly declare that intent. Reviewed-By: Jacob Helwig <jacob@puppetlabs.com>
Diffstat (limited to 'test/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions