summary refs log tree commit diff
path: root/man
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2006-07-24 21:01:36 +0000
committerGerrit Pape <pape@smarden.org>2006-07-24 21:01:36 +0000
commite000ef07290d4b576a5dc01689f91b5c4f6f578d (patch)
tree5dc8261a8e6e9b39273868d6a18bb1b688ddddff /man
parent369ac77b5aadb1aa85c7c8c436b0f64b555e0222 (diff)
downloadrunit-e000ef07290d4b576a5dc01689f91b5c4f6f578d.tar.gz
runit-e000ef07290d4b576a5dc01689f91b5c4f6f578d.tar.xz
runit-e000ef07290d4b576a5dc01689f91b5c4f6f578d.zip
* 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).
Diffstat (limited to 'man')
-rw-r--r--man/runsv.811
-rw-r--r--man/svlogd.89
2 files changed, 19 insertions, 1 deletions
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