Larry Fast
2013-Mar-01 19:20 UTC
[Puppet Users] Can puppet report the console output from service foo status?
I have an odd problem. The first time I install my new package, puppet comes back with "Execution of ''/sbin/service chirp_fe start'' returned 1:" When I run this command manually and on all subsequent puppet runs it succeeds. So I''m looking for a way to capture the console output from the invocation of /sbin/service chirp_fe start. Is there something I can turn on in Puppet to capture this output? -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Ellison Marks
2013-Mar-01 21:24 UTC
[Puppet Users] Re: Can puppet report the console output from service foo status?
Post the actual manifest, or we can only offer conjectures. On Friday, March 1, 2013 11:20:26 AM UTC-8, Larry Fast wrote:> > I have an odd problem. The first time I install my new package, puppet > comes back with "Execution of ''/sbin/service chirp_fe start'' returned 1:" > When I run this command manually and on all subsequent puppet runs it > succeeds. > > So I''m looking for a way to capture the console output from the invocation > of /sbin/service chirp_fe start. Is there something I can turn on in > Puppet to capture this output? > > >-- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Mar-04 16:33 UTC
Re: [Puppet Users] Re: Can puppet report the console output from service foo status?
Oh, I will :-) Have you made sure the package is installed prior to the attempt of starting the service (i.e., does the service require the package?) The easiest way to go about the problem would be to replace the service resource with an exec for the sake of debugging (under all other circumstances, it''s lousy design, though). In the exec, you can specify logoutput => "on_failure" to have puppet write the output to console or log. HTH, Felix On 03/01/2013 10:24 PM, Ellison Marks wrote:> Post the actual manifest, or we can only offer conjectures. > > On Friday, March 1, 2013 11:20:26 AM UTC-8, Larry Fast wrote: > > I have an odd problem. The first time I install my new package, > puppet comes back with "Execution of ''/sbin/service chirp_fe start'' > returned 1:" When I run this command manually and on all > subsequent puppet runs it succeeds. > > So I''m looking for a way to capture the console output from the > invocation of /sbin/service chirp_fe start. Is there something I > can turn on in Puppet to capture this output?-- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.