s6/s6-rc policy for Gentoo: The logging directory

From: Paul Sopka <psopka_at_sopka.ch>
Date: Sat, 6 Jul 2024 01:45:42 +0200

The last "thread" I open for this night. I promise.

I currently have set up logging in the following way:

System supervision tree logs to to /var/log/${daemon}

User supervision tree logs got to /var/log/${USER}/${daemon}


Currently, the logging dir is hardcoded in all s6-log daemons. I want to
change that.

Concerning the user tree loggers, this is easy, the system service
starting the user tree just sets an environment variable all user tree
s6-log daemons can use.

Concerning the system tree loggers, my first idea is to set an
environment variable somewhere in the scripts s6-linux-init provides.

Is this even possible?

What would be the best place to do this?

Is there a better alternative?


Generally, I would be interested hear what you think about my choice of
logging directories.


Paul

Received on Sat Jul 06 2024 - 01:45:42 CEST

This archive was generated by hypermail 2.4.0 : Sat Jul 06 2024 - 01:46:29 CEST