[PATCH 0/4] Add info on why process is down to statusfile

From: Olivier Brunel <jjk_at_jjacky.com>
Date: Sun, 18 Jan 2015 21:13:54 +0100


So I wanted to have the return code/signal that occured when a process went down
available on the statusfile, as I believe this is useful information to have for
all services.

Looking into it, I noticed that s6 already did gather that info from wait(), and
sends it to ./finish -- that was a nice surprise, but (unless I missed it?)
totally undocumented.

First patch fixes the first argument to ./finish, since I assume it was meant to
be able to know whether there was a return code or not, but 255 actually is a
valid return code. Second patch adds a mention of those arguments to the doc.

Then third patch does add that info to the statusfile, and finally as a separate
patch I've also added the signal name to s6-svstat as I think it's a nice thing
to have.


Olivier Brunel (4):
  supervise: Fix arguments to finish
  supervise: Document arguments to ./finish
  Add info on why process is down to statusfile
  svstat: Show signal name as well

 doc/s6-supervise.html | 2 +
 src/include/s6/s6-supervise.h | 6 ++-
 src/libs6/s6_svstatus_pack.c | 3 +-
 src/libs6/s6_svstatus_unpack.c | 4 ++
 src/supervision/s6-supervise.c | 13 ++---
 src/supervision/s6-svstat.c | 111 ++++++++++++++++++++++++++++++++++++++++-
 6 files changed, 129 insertions(+), 10 deletions(-)

Received on Sun Jan 18 2015 - 20:13:54 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC