bang: detect SIGINT and SIGTERM failures
commitc8ce0cace259527c0183b8e654ad664665e08e49
authorKyle J. McKay <mackyle@gmail.com>
Mon, 29 Aug 2016 06:25:21 +0000 (28 23:25 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 29 Aug 2016 06:25:21 +0000 (28 23:25 -0700)
tree40d414d52b2f3a65572f573b5746ada76a5e3119
parent353523b0af85688c2e364b58b1b3a7deba66814a
bang: detect SIGINT and SIGTERM failures

Detect bang failures because the process was killed with SIGINT or
SIGTERM and count those as a failure.

This way updates that start failing because they are now hanging every
time (and then being killed by jobd.pl) will be caught and generate a
failure message after the minimum count/interval is reached rather than
silently continuing to fail with no notification.

Previously this detection was undesirable as it would have likely
resulted in additional spurious failed+recovery messages.  However, now
that there is a minimum failure count and/or interval required including
SIGINT and SIGTERM kills as failures will no longer cause that problem.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
shlib.sh