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

From: Carlos Eduardo <carana2099_at_gmail.com>
Date: Fri, 12 Jul 2024 10:15:55 -0300

On my setup, logs are stored under a dot-directory in my home directory,
which avoids needing any cooperation from root when setting up user
services (and the mentioned risk of overlap between user and system
services).

Due to /var == ~/.local/state according to the XDG spec (which, from your
other threads, you seem to want to follow closely), you might want to use
"${HOME}/.local/state/log/${daemon}" [1].

[1] https://forum.artixlinux.org/index.php/topic,6918.msg41919.html#msg41919



Em ter., 9 de jul. de 2024 às 05:24, Paul Sopka <psopka_at_sopka.ch> escreveu:
>
> > Quick question (that you may have already thought about, apologies in
> > advance): what happens if one wants to start a new daemon that has
> > the same name as an already existing system user account?
> > Also, what happens if a new system user account is created with
> > the same name as an already configured service daemon?
> Thank you for the heads up and don't apologize, you are completely right.
> > Indeed. Those should be /var/log/s6/${daemon} and
> > /var/log/s6-user/${USER}/${daemon} respectively, to avoid stepping on
> > any toes.
>
> This seems sensible, but I will think a bit more about the exact naming.
>
>
> Paul
>
Received on Fri Jul 12 2024 - 15:15:55 CEST

This archive was generated by hypermail 2.4.0 : Fri Jul 12 2024 - 15:16:28 CEST