>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