I modified the windows.rb and it seems to work well now. Many thanks!

Dan

On Tuesday, July 24, 2012 5:00:09 PM UTC-6, Dan McManus wrote:
>
> Hi!
>
> I am encountering something that I am not sure is a bug or not, so I 
> thought I'd post a question.
>
> Running Puppet 2.7.18 on Windows 2003.
>
> 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 <http://projects.puppetlabs.com/issues/13489>. 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?
>
> Thanks
>
> Dan
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/FkklIRSsF64J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to