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+unsubscribe@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.
Rahul Khengare
2013-Sep-02 05:51 UTC
[Puppet Users] Re: Incorrect return code for failed exec
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+unsubscribe@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.
Igor Berger
2013-Sep-03 14:23 UTC
[Puppet Users] Re: Incorrect return code for failed exec
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 puppet-users+unsubscribe@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.
Rob Reynolds
2013-Sep-03 14:34 UTC
Re: [Puppet Users] Re: Incorrect return code for failed exec
What does "cmd /c sc start MyService" return? On Tue, Sep 3, 2013 at 9:23 AM, Igor Berger <codewizard@gmail.com> 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 puppet-users+unsubscribe@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. >-- 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 puppet-users+unsubscribe@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.
Igor Berger
2013-Sep-03 14:56 UTC
Re: [Puppet Users] Re: Incorrect return code for failed exec
It returns 1053. The "sc start" command prints: [SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion. You can easily reproduce it by registering a service with a non-existing executable: sc create MyService binPath= C:\NotThere.exe Then add this to a test.cmd file: sc start MyService echo %errorlevel% On Tuesday, September 3, 2013 10:34:32 AM UTC-4, Rob Reynolds wrote:> > What does "cmd /c sc start MyService" return? > > > On Tue, Sep 3, 2013 at 9:23 AM, Igor Berger <codew...@gmail.com<javascript:> > > 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 puppet-users...@googlegroups.com <javascript:>. >> To post to this group, send email to puppet...@googlegroups.com<javascript:> >> . >> 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 puppet-users+unsubscribe@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.
Igor Berger
2013-Sep-10 16:29 UTC
Re: [Puppet Users] Re: Incorrect return code for failed exec
Should log an issue about this someplace? On Tuesday, September 3, 2013 10:56:01 AM UTC-4, Igor Berger wrote:> > It returns 1053. The "sc start" command prints: > > [SC] StartService FAILED 1053: The service did not respond to the > start or control request in a timely fashion. > > You can easily reproduce it by registering a service with a non-existing > executable: > > sc create MyService binPath= C:\NotThere.exe > > Then add this to a test.cmd file: > > sc start MyService > echo %errorlevel% > > > On Tuesday, September 3, 2013 10:34:32 AM UTC-4, Rob Reynolds wrote: >> >> What does "cmd /c sc start MyService" return? >> >> >> On Tue, Sep 3, 2013 at 9:23 AM, Igor Berger <codew...@gmail.com> 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 puppet-users...@googlegroups.com. >>> To post to this group, send email to puppet...@googlegroups.com. >>> 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 puppet-users+unsubscribe@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.
Rob Reynolds
2013-Sep-12 14:07 UTC
Re: [Puppet Users] Re: Incorrect return code for failed exec
Please log this at https://projects.puppetlabs.com/projects/puppet/issues/new In keywords, please put windows. Thanks. On Tue, Sep 10, 2013 at 11:29 AM, Igor Berger <codewizard@gmail.com> wrote:> Should log an issue about this someplace? > > > On Tuesday, September 3, 2013 10:56:01 AM UTC-4, Igor Berger wrote: >> >> It returns 1053. The "sc start" command prints: >> >> [SC] StartService FAILED 1053: The service did not respond to the >> start or control request in a timely fashion. >> >> You can easily reproduce it by registering a service with a non-existing >> executable: >> >> sc create MyService binPath= C:\NotThere.exe >> >> Then add this to a test.cmd file: >> >> sc start MyService >> echo %errorlevel% >> >> >> On Tuesday, September 3, 2013 10:34:32 AM UTC-4, Rob Reynolds wrote: >>> >>> What does "cmd /c sc start MyService" return? >>> >>> >>> On Tue, Sep 3, 2013 at 9:23 AM, Igor Berger <codew...@gmail.com> 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_**servi**ce]/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...@googlegroups.**com. >>>> To post to this group, send email to puppet...@googlegroups.com. >>>> Visit this group at http://groups.google.com/**group/puppet-users<http://groups.google.com/group/puppet-users> >>>> . >>>> For more options, visit https://groups.google.com/**groups/opt_out<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 puppet-users+unsubscribe@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. >-- 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 puppet-users+unsubscribe@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.
Igor Berger
2013-Sep-16 19:12 UTC
Re: [Puppet Users] Re: Incorrect return code for failed exec
Done: https://projects.puppetlabs.com/issues/22572 On Thursday, September 12, 2013 10:07:49 AM UTC-4, Rob Reynolds wrote:> > Please log this at > https://projects.puppetlabs.com/projects/puppet/issues/new > > In keywords, please put windows. > > Thanks. > > > On Tue, Sep 10, 2013 at 11:29 AM, Igor Berger <codew...@gmail.com<javascript:> > > wrote: > >> Should log an issue about this someplace? >> >> >> On Tuesday, September 3, 2013 10:56:01 AM UTC-4, Igor Berger wrote: >>> >>> It returns 1053. The "sc start" command prints: >>> >>> [SC] StartService FAILED 1053: The service did not respond to the >>> start or control request in a timely fashion. >>> >>> You can easily reproduce it by registering a service with a non-existing >>> executable: >>> >>> sc create MyService binPath= C:\NotThere.exe >>> >>> Then add this to a test.cmd file: >>> >>> sc start MyService >>> echo %errorlevel% >>> >>> >>> On Tuesday, September 3, 2013 10:34:32 AM UTC-4, Rob Reynolds wrote: >>>> >>>> What does "cmd /c sc start MyService" return? >>>> >>>> >>>> On Tue, Sep 3, 2013 at 9:23 AM, Igor Berger <codew...@gmail.com> 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_**servi**ce]/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...@googlegroups.**com. >>>>> To post to this group, send email to puppet...@googlegroups.com. >>>>> Visit this group at http://groups.google.com/**group/puppet-users<http://groups.google.com/group/puppet-users> >>>>> . >>>>> For more options, visit https://groups.google.com/**groups/opt_out<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 puppet-users...@googlegroups.com <javascript:>. >> To post to this group, send email to puppet...@googlegroups.com<javascript:> >> . >> 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 puppet-users+unsubscribe@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.
Rob Reynolds
2013-Sep-25 22:19 UTC
Re: [Puppet Users] Re: Incorrect return code for failed exec
Just an update, I found this issue was a duplicate of https://projects.puppetlabs.com/issues/19033. Please vote up that issue and/or watch that issue for further developments. On Mon, Sep 16, 2013 at 2:12 PM, Igor Berger <codewizard@gmail.com> wrote:> Done: https://projects.puppetlabs.com/issues/22572 > > > On Thursday, September 12, 2013 10:07:49 AM UTC-4, Rob Reynolds wrote: > >> Please log this at https://projects.**puppetlabs.com/projects/** >> puppet/issues/new<https://projects.puppetlabs.com/projects/puppet/issues/new> >> >> In keywords, please put windows. >> >> Thanks. >> >> >> On Tue, Sep 10, 2013 at 11:29 AM, Igor Berger <codew...@gmail.com> wrote: >> >>> Should log an issue about this someplace? >>> >>> >>> On Tuesday, September 3, 2013 10:56:01 AM UTC-4, Igor Berger wrote: >>>> >>>> It returns 1053. The "sc start" command prints: >>>> >>>> [SC] StartService FAILED 1053: The service did not respond to the >>>> start or control request in a timely fashion. >>>> >>>> You can easily reproduce it by registering a service with a >>>> non-existing executable: >>>> >>>> sc create MyService binPath= C:\NotThere.exe >>>> >>>> Then add this to a test.cmd file: >>>> >>>> sc start MyService >>>> echo %errorlevel% >>>> >>>> >>>> On Tuesday, September 3, 2013 10:34:32 AM UTC-4, Rob Reynolds wrote: >>>>> >>>>> What does "cmd /c sc start MyService" return? >>>>> >>>>> >>>>> On Tue, Sep 3, 2013 at 9:23 AM, Igor Berger <codew...@gmail.com>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_**servi****ce]/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...@googlegroups.**c**om. >>>>>> To post to this group, send email to puppet...@googlegroups.com. >>>>>> Visit this group at http://groups.google.com/**group**/puppet-users<http://groups.google.com/group/puppet-users> >>>>>> . >>>>>> For more options, visit https://groups.google.com/**grou**ps/opt_out<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 puppet-users...@**googlegroups.com. >>> To post to this group, send email to puppet...@googlegroups.com. >>> Visit this group at http://groups.google.com/**group/puppet-users<http://groups.google.com/group/puppet-users> >>> . >>> For more options, visit https://groups.google.com/**groups/opt_out<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 puppet-users+unsubscribe@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. >-- 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 puppet-users+unsubscribe@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.