Hi all, I''m running puppet agent as a onetime process. I would expect, if it can''t create the pid file, that it would exit non-zero. However, it seems to exit zero. Is there any way to change this? I''d like to know if it couldn''t run, and it seems that this is an error. [root@db1r1 ~]# puppet agent --onetime --detailed-exitcodes [root@db1r1 ~]# puppet agent --onetime --detailed-exitcodes Could not prepare for execution: Could not create PID file: /var/run/puppet/agent.pid [root@db1r1 ~]# echo $? 0 Any thoughts? -Stephanie -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tuesday, July 31, 2012 9:44:41 AM UTC-5, Stephanie Jackson wrote:> > Hi all, > > I''m running puppet agent as a onetime process. I would expect, if it > can''t create the pid file, that it would exit non-zero. However, it seems > to exit zero. Is there any way to change this? I''d like to know if it > couldn''t run, and it seems that this is an error. > > [root@db1r1 ~]# puppet agent --onetime --detailed-exitcodes > [root@db1r1 ~]# puppet agent --onetime --detailed-exitcodes > Could not prepare for execution: Could not create PID file: > /var/run/puppet/agent.pid > [root@db1r1 ~]# echo $? > 0 > > Any thoughts? >I would expect the Puppet agent running without --no-daemonize to exit zero unless it could not start at all. If it runs with --onetime --no-daemonize, however, then I would expect it to exit nonzero in the event of any kind of failure. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/UyQjivmITMMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Fri, Aug 3, 2012 at 6:49 AM, jcbollinger <John.Bollinger@stjude.org>wrote:> > On Tuesday, July 31, 2012 9:44:41 AM UTC-5, Stephanie Jackson wrote: >> >> Hi all, >> >> I''m running puppet agent as a onetime process. I would expect, if it >> can''t create the pid file, that it would exit non-zero. However, it seems >> to exit zero. Is there any way to change this? I''d like to know if it >> couldn''t run, and it seems that this is an error. >> >> [root@db1r1 ~]# puppet agent --onetime --detailed-exitcodes >> [root@db1r1 ~]# puppet agent --onetime --detailed-exitcodes >> Could not prepare for execution: Could not create PID file: >> /var/run/puppet/agent.pid >> [root@db1r1 ~]# echo $? >> 0 >> >> Any thoughts? >> > > I would expect the Puppet agent running without --no-daemonize to exit > zero unless it could not start at all. If it runs with --onetime > --no-daemonize, however, then I would expect it to exit nonzero in the > event of any kind of failure. > >Yes, this sounds like a bug. Would you mind filing a bug report at http://projects.puppetlabs.com/projects/puppet ? There''s a bug submission guide posted at http://projects.puppetlabs.com/projects/puppet/wiki/Bug_Submission_Guide. -Jeff -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.