Re: s6-log: Log rotation during shutdown
Aleksy Grabowski <[email protected]> Fri, 27 Feb 2026 23:17:34 +0100
| Newsgroups | gmane.comp.sysutils.supervision.general |
|---|---|
| Message-ID | <CAETKQW+jRiPhvcfr5-=Vbf26E9Pb-xbQGLAj+t0_z1-X=SHJ8A@mail.gmail.com> |
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