Hi Igor,
   You can run "sc start MyService" command manually on your machine and 
check whether the service run correctly. Also check the environment 
parameters are set for that service.
Can you explain your query in more detail manner.  

Thanks and Regards,
Rahul Khengare,
NTT DATA OSS Center, Pune, India.


On Saturday, August 31, 2013 3:20:54 AM UTC+5:30, Igor Berger wrote:
>
> Hello,
>
> I'm running puppet agent standalone on Windows.
>
> The last step in the manifest is "exec { 'start_service': command => "sc 
> start MyService" }".
>
> When the service has a problem and doesn't start, Puppet logs:
>
> /Stage[main]//Exec[start_service]/returns (err): change from notrun to 0 
> failed: sc start MyService returned 29 instead of one of [0]
>
> However, the %errorlevel% returned is still 0.
>
> However, if I use "--detailed-exitcodes", the %errorlevel% is correctly 
> set to 6.
>
> Regards,
> Igor.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to