What does "cmd /c sc start MyService" return?

On Tue, Sep 3, 2013 at 9:23 AM, Igor Berger <[email protected]> wrote:

> As I mentioned, I'm running into this issue when the service fails to
> start.
> "sc start" returns a failure, Puppet mentions it in the log file.
>
> The problem is that "puppet apply" returns 0 (success) to the shell when
> "sc start" fails.
> However, "puppet apply --detailed-exitcodes" returns a failure to the
> shell correctly.
>
>
>
> On Monday, September 2, 2013 1:51:31 AM UTC-4, Rahul Khengare wrote:
>>
>> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014, September 23-24 in San Francisco

-- 
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 [email protected].
To post to this group, send email to [email protected].
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