Re[2]: s6/s6-rc policy for Gentoo: config files for service scripts

From: Laurent Bercot <ska-supervision_at_skarnet.org>
Date: Thu, 19 Sep 2024 20:47:03 +0000

>The best would probably be for s6-rc-compile to allow for multiple
>definitions of a service,
>letting later definitions override earlier ones, e.g.
>
>s6-rc-compile ${OUTPUT_DB} ${SOURCE_1} ${SOURCE_2}
>
>where seatd-srv in ${SOURCE_2} overrides seatd-srv in ${SOURCE_1}.
>
>Would this be realizable Laurent?
>

  Overrides? No, this would make things confusing and error-prone. The
behaviour
of a set of source definition directories should not be influenced by
whether or not
you're compiling it with another set.

  Organizing services is something I don't have a lot of policy advice
on. There's a balance
to be found between ease of use and flexibility; a sound approach seems
to be to have
the service itself hardcoded in the system set of source definition
directories (handled
by the package manager) but keep the run script itself pretty
configurable via
environment definitions sourced from user-modifiable files in /etc. It's
not the only
possible approach, but it works for most services.

--
  Laurent
Received on Thu Sep 19 2024 - 22:47:03 CEST

This archive was generated by hypermail 2.4.0 : Thu Sep 19 2024 - 22:47:35 CEST