On Fri, Aug 3, 2012 at 6:49 AM, jcbollinger <john.bollin...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to