Re: s6-log: Log rotation during shutdown

From: Aleksy Grabowski <hurufu_at_gmail.com>
Date: Fri, 27 Feb 2026 23:17:34 +0100

Thanks for an idea, that approach seems quite elegant, and hardly
anything can go wrong (assuming correct implementation with a
hard timeout to reboot anyway).

> [...] why are
> you using SIGHUP over SIGTERM by the way?

There is no good reason, but from what I understood while reading
sources, SIGHUP will cause s6-log to read last lines and execute
log script, so that might be useful.

Also, have you considered combining = action and ! processor?
Not only to store matching log records, but also post-process them?
For example, if you see some periodic information let's say current
temperature, this way you can extract log line with that temperature,
and store just the numeric value in a file.

-- 
Alex
Received on Fri Feb 27 2026 - 23:17:34 CET

This archive was generated by hypermail 2.4.0 : Fri Feb 27 2026 - 23:18:15 CET