Hi Dan,
On Tue, Jul 24, 2012 at 4:00 PM, Dan McManus <
mothb...@gmail.com> wrote:
>
> Basically, what I want to do is manage nsclient++ on windows. I am able to manage the files just fine, but restarting doesn't work because of bug 13489.
I'd recommend trying out the latest version of puppet 2.7.x, directly
from github. You should just need to patch
`lib/puppet/provider/service/windows.rb`. Normally, I'd point you to
our nightly builds, but the windows jobs haven't been running lately
due to some infrastructure reorganization. I'll sort that out next
week.
> So I thought I might circumvent it thusly:
>
>
> service { "NSClientpp":
> ensure => running,
> restart => 'c:/program files/nsclient++/scripts/restart.bat',
> subscribe => File["c:/program files/nsclient++/nsc.ini"],
> }
>
> and restart.bat is very simple:
>
> sc stop nsclientpp
> perl -e "sleep 10"
> sc start nsclientpp
> echo ran >> c:\restart.txt
>
> it has world read and execute permissions, so it should run, but restart.txt doesn't get created and the service still won't start on its own.
>
> My question is whether I am doing something wrong or is this is a bug?
The windows service provider doesn't currently support overriding the
`restart` method. We should either call that out in the provider
documentation or add the ability to override it. I've filed this as
https://projects.puppetlabs.com/issues/15693
Josh
--
Josh Cooper
Developer, Puppet Labs