Issue #19971 has been updated by Tristan Helmich.

Status changed from Unreviewed to Investigating
Assignee set to Tristan Helmich

----------------------------------------
Bug #19971: When signalled, agent exits with status 0 even with 
--detailed-exitcodes
https://projects.puppetlabs.com/issues/19971#change-94671

* Author: Andy Brody
* Status: Investigating
* Priority: Normal
* Assignee: Tristan Helmich
* Category: error reporting
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
If puppet exits on a SIGINT or SIGTERM, it will exit with status 0 even if it 
has already made changes and `--detailed-exitcodes` was given.

<pre>
$ sudo puppet agent --test --detailed-exitcodes
...
info: Applying configuration version '1364495084'
notice: /Stage[bootstrap2]/Operatingsystem/File[/etc/hosts]/content: 
--- /etc/hosts  2013-03-29 00:02:53.664920672 +0000
+++ /tmp/puppet-file20130329-11313-1ri5qdw-0    2013-03-29 00:03:38.340509179 
+0000
@@ -609,4 +609,3 @@

 
 
-#foo

info: FileBucket adding {md5}2ff66819b63865fe0341024a20888e1c
info: /Stage[bootstrap2]/Operatingsystem/File[/etc/hosts]: Filebucketed 
/etc/hosts to puppet with sum 2ff66819b63865fe0341024a20888e1c
notice: /Stage[bootstrap2]/Operatingsystem/File[/etc/hosts]/content: content 
changed '{md5}2ff66819b63865fe0341024a20888e1c' to 
'{md5}1c8ae3739b80b04abaf48e31a99bd75b'
notice: Caught TERM; calling stop

[time: 66s] 
$ echo $?
0
</pre>



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to