On Sat, Sep 05, 2020 at 11:46:44AM -0400, Rio Liu wrote: > I'm configuring my linux to use s6-rc. It works fairly well so far. One > thing I want to improve though, is that the early logger logs to > /run/uncaught-logs. It's nice to have a log file during early boot and it > helped my debugging easier. But it would be cool to able to change the > location to a permanent location like /var/log after the root has been > remounted as read-write. > > Is it possible to update the log path of early/catch-all s6-log process to > a new location, and perhaps copying the early logs there as well? Or if > not, is it possible to spawn a new s6-log process that acts as a catch-all > logger?
Your requirements of saving logs from /run/uncaught-logs and (mentioned later) batch-producing `producer-for'/`consumer-for' files can be automated using slew: <https://gitea.com/CasperVector/slew>. (Other encapsulations of s6/s6-rc also exist, but I am the author of slew ;) -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2022.09.20) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C