From 6c936711c61df41eeb936a98e6bc43584776ab08 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 26 May 2023 15:29:13 +0000 Subject: Add -t lastlinetimeout option to s6-log Signed-off-by: Laurent Bercot --- doc/s6-log.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc/s6-log.html') diff --git a/doc/s6-log.html b/doc/s6-log.html index a76f9aa..6e24e4c 100644 --- a/doc/s6-log.html +++ b/doc/s6-log.html @@ -27,7 +27,7 @@ with full POSIX regular expression support.

Interface

-     s6-log [ -d notif ] [ -q | -v ] [ -b ] [ -p ] [ -l linelimit ] [ -- ] logging script
+     s6-log [ -d notif ] [ -q | -v ] [ -b ] [ -p ] [ -l linelimit ] [ -t lastlinetimeout ] [ -- ] logging script
 

@@ -75,6 +75,15 @@ etc. linelimit cannot be less than 48, unless it is 0 (which means infinite). The default is 8192 bytes. Setting linelimit to 0 ensures that lines will never be split; this may cause important memory consumption by s6-log if it is fed extremely long lines, so use with caution. +

  • -t lastlinetimeout : if s6-log receives +a termination signal but has a read a partial line in its buffer, it will +wait for at most lastlinetimeout milliseconds for its service +to send it the remainder of the line; if it still hasn't read a newline +character by then, it will add a newline character itself and process the +line, then exit. By default, lastlinetimeout is 2000, which means +s6-log will wait for at most 2 seconds for completion of its last partial line. +If lastlinetimeout is given as 0, then s6-log +will wait forever; it won't exit until it actually reads a newline or EOF.
  • Logdirs

    -- cgit v1.3.1