From: Rio Liu <rio6.liu@gmail.com>
To: supervision@list.skarnet.org
Subject: Re: Update early logger logging path after remounting root as rw
Date: Sun, 6 Sep 2020 11:53:48 -0400 [thread overview]
Message-ID: <CAFDeY1YUcAztDkaSW_qt2Av61A+MVqF9et84Q=Q6MBVs70iA9Q@mail.gmail.com> (raw)
In-Reply-To: <c4718e72-afb4-7fc7-1d1d-1be7f3570ffe@disroot.org>
[-- Attachment #1: Type: text/plain, Size: 1603 bytes --]
Thanks for all the replies :)
> 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 ;)
>
Yeah I'll need to look around and take inspirations from all the s6-rc
wrapper/scripts. Thanks for sharing.
1) Bring up a second service reading from the same
> /run/service/s6-svscan-log/fifo pipe, and once the new logger is ready,
> bring
> down the old s6-svscan-log service (from a oneshot depending on the new
> logger).
> During the transition, log lines could go to either service, but nothing
> would
> be lost.
I like the idea of reading /run/services/s6-svscan-log/fifo from a new
logger instance, I might try it and see how it works.
In 66 this is written as /run/66/log/0/current, and I have user/root
> copy it after a shell is executed, this helps when I would change
> something and it is not booting right on the next boot, I can compare
> the before after. Part of 66 booting procedure is to activate tty12 as
> early as possible, instead of the insecure sulogin that appears in
> runit. From tty12 you can read that log and mount things manually and
> change/fix what is wrong. You can also decrease/increase verbosity in
> that log. tty12 is a special setup in 66 where root can't login, only a
> user can, a security measure I find as a great idea.
>
Have verbose log in tty12 is a great idea, I'll see how 66 does it and
maybe implement it in my setup.
next prev parent reply other threads:[~2020-09-06 15:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-05 15:46 Rio Liu
2020-09-05 19:45 ` Laurent Bercot
2020-09-05 20:26 ` Rio Liu
2020-09-05 20:50 ` Samuel Holland
2020-09-06 10:36 ` yianiris
2020-09-06 15:53 ` Rio Liu [this message]
2020-09-05 20:43 ` Casper Ti. Vector
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFDeY1YUcAztDkaSW_qt2Av61A+MVqF9et84Q=Q6MBVs70iA9Q@mail.gmail.com' \
--to=rio6.liu@gmail.com \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).