Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-2420) omit ensure => running due to "trigger start" #56

Conversation

MosesMendoza
Copy link
Contributor

In newer Windows versions wsuaserv supports a start type of "manual (trigger
start)" which is another form of running/enabled in which the service will
start (on-demand) in response to some defined event. However, in the
wsus-client module, puppet sees this state as enabled but not running, and
starts the service with every run. The short-term fix in this commit is to
consider the service running when enabled on these operating systems. The
long-term fix, captured by PUP-6489 may be to modify the puppet windows service
provider to support the trigger state. It's unclear at this time whether that
effort would be justified because at this time it seems like trigger start
services are not commonplace and aren't an officially supported service type.

reference
http://mikefrobbins.com/2015/12/24/use-powershell-to-determine-services-with-a-starttype-of-automatic-or-manual-with-trigger-start/

Signed-off-by: Moses Mendoza mendoza.moses@gmail.com

In newer Windows versions wsuaserv supports a start type of "manual (trigger
start)" which is another form of running/enabled in which the service will
start (on-demand) in response to some defined event. However, in the
wsus-client module, puppet sees this state as enabled but not running, and
starts the service with every run.  The short-term fix in this commit is to
consider the service running when enabled on these operating systems. The
long-term fix, captured by PUP-6489 may be to modify the puppet windows service
provider to support the trigger state.  It's unclear at this time whether that
effort would be justified because at this time it seems like trigger start
services are not commonplace and aren't an officially supported service type.

reference
http://mikefrobbins.com/2015/12/24/use-powershell-to-determine-services-with-a-starttype-of-automatic-or-manual-with-trigger-start/

Signed-off-by: Moses Mendoza <mendoza.moses@gmail.com>
@MosesMendoza
Copy link
Contributor Author

this PR is intended to supersede #50

@glennsarti glennsarti merged commit 91a849c into puppetlabs:master Jul 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants