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