From: "Laurent Bercot" <ska-supervision@skarnet.org>
To: "Paul Sopka" <psopka@sopka.ch>, supervision@list.skarnet.org
Subject: Re: s6/s6-rc policy for Gentoo: logging settings
Date: Thu, 11 Jul 2024 15:40:06 +0000 [thread overview]
Message-ID: <emaac7f52d-f718-4f4f-a1f8-ce1ffafb6a84@c1c67d32.com> (raw)
In-Reply-To: <6813d7f9-3333-416f-a24e-a3f655726853@sopka.ch>
>Should every s6-log daemon have it's own config file or shall they all share one?
What kind of stuff are you putting in the config file? Is it just a
template for a logging script?
>Is there any general issue with the global env's from s6-linux-init's env directory, which makes sourcing the same config file in every s6-log script a better choice for a global config?
The global environment defined in s6-linux-init applies to *all*
processes in the system. It's not nice to pollute it with stuff that
would only apply to a pretty restricted subset of all the processes
on the machine.
Source your config file in every logger run script you have, and
leave the global environment alone. There will be no performance issue.
For more configurability, you could e.g. have a default logging
template
hardcoded in your run scripts, that you could override via a service-
specific configuration file.
--
Laurent
prev parent reply other threads:[~2024-07-11 15:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 15:20 Paul Sopka
2024-07-11 15:40 ` Laurent Bercot [this message]
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=emaac7f52d-f718-4f4f-a1f8-ce1ffafb6a84@c1c67d32.com \
--to=ska-supervision@skarnet.org \
--cc=psopka@sopka.ch \
--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).