From e000ef07290d4b576a5dc01689f91b5c4f6f578d Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Mon, 24 Jul 2006 21:01:36 +0000 Subject: * svlogd.c, fmt_ptime.*, man/svlogd.8: new option -ttt: prefix log messages with sortable UTC timestamp YYYY-MM-DDTHH:MM:SS.xxxxx. * runsv.c, runsv.8: give to arguments to ./finish: exit code and exit status of ./run (mostly copied from pipe-tools' npt-supervise, thx Laurent Bercot). --- man/runsv.8 | 11 +++++++++++ man/svlogd.8 | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'man') diff --git a/man/runsv.8 b/man/runsv.8 index 81048fb..824de2f 100644 --- a/man/runsv.8 +++ b/man/runsv.8 @@ -24,6 +24,17 @@ If ./run or ./finish exit immediately, .B runsv waits a second before starting ./finish or restarting ./run. .P +Two arguments are given to ./finish. +The first one is ./run's exit code, or -1 if ./run didn't exit normally. +The second one is the least significant byte of the exit status as +determined by +.BR waitpid (2); +for instance it is 0 if ./run exited normally, and the signal number +if ./run was terminated by a signal. +If +.B runsv +cannot start ./run for some reason, the exit code is 111 and the status is 0. +.P If the file .IR service /down exists, diff --git a/man/svlogd.8 b/man/svlogd.8 index 126e40b..a7a4ba9 100644 --- a/man/svlogd.8 +++ b/man/svlogd.8 @@ -3,7 +3,7 @@ svlogd \- runit's service logging daemon .SH SYNOPSIS .B svlogd -[\-ttv] [\-r +[\-tttv] [\-r .I c\fR] [\-R .I xyz\fR] [\-l .I len\fR] [\-b @@ -368,6 +368,13 @@ the form YYYY-MM-DD_HH:MM:SS.xxxxx when writing to .I log or to standard error. .TP +.B \-ttt +timestamp. +Prefix each selected line with a human readable, sortable UTC timestamp of +the form YYYY-MM-DDTHH:MM:SS.xxxxx when writing to +.I log +or to standard error. +.TP .B \-r \fIc replace. .I c -- cgit 1.4.1