Issue #22490 has been reported by Adam Scarborough.

----------------------------------------
Bug #22490: CreateProcess() failed when specifying service restart command in 
puppet 3.2.2
https://projects.puppetlabs.com/issues/22490

* Author: Adam Scarborough
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: windows
* Target version: 
* Affected Puppet version: 3.2.2
* Keywords: windows service 
* Branch: 
----------------------------------------
Running puppet 3.2.2 on 64bit windows 2008 i have a service which looks like 
the following:

service{'Tomcat7':
    ensure => running,
    restart => 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -file 
C:\tomcat7\bin\RestartService.ps1',
}

Running the command in command prompt works

However:

When puppet triggers the refresh i get the following:

    Debug: Executing 'c:/Windows/System32/WindowsPowerShellv/1.0/powershell.exe 
-file c:/tomcat7/bin/RestartService.ps1'
    Error: /Stage[main]/Dep7transcription/Service[Tomcat7]: Failed to call 
refresh: CreateProcess() failed: The system cannot find the file specified.
    Error: /Stage[main]/Dep7transcription/Service[Tomcat7]: CreateProcess() 
failed: The system cannot find the file specified.

This seems like odd behavior 


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to