Issue #19808 has been updated by Josh Cooper.

Since the service provider defines a command, `for_binary?` is true, so we call 
`which(value)` as expected. `Puppet::Util.which` uses the `PATH` environment 
variable to resolve paths. On Windows, we also look at `PATHEXT` to account for 
cases where the file extension is not specified, for example:

`ENV['PATH']` should definitely not be `/bin:/sbin:/usr/bin:/usr/sbin` on 
Windows, that is the source of the problem. Can you check the following?

* Are you running puppet from cygwin, msys, sua, etc?
* Have you specified a [path 
setting](http://docs.puppetlabs.com/references/stable/configuration.html#path) 
in puppet.conf? 
* What is the output of `puppet agent --configprint path`?
* What is the output of `ruby -e "puts File::ALT_SEPARATOR"`


----------------------------------------
Bug #19808: Service provider for windows 2003 - does not work
https://projects.puppetlabs.com/issues/19808#change-87639

* Author: Klavs Klavsen
* Status: Needs More Information
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
If I define:
service { 'nscp': ensure => running, enable => true }

puppet wants to use init provider.

I then tried to force it to use windows provider - but it fails (according to 
--debug) with "file net.exe does not exist" windows service provider is not 
functional on this host.

Yet: net nscp restart works just fine (ie. net works fine :)

Anything I can do to help debug?

I'm running puppet-3.1.1


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to