Re: S6 Queries

From: Laurent Bercot <>
Date: Mon, 02 Aug 2021 21:40:39 +0000

>Do you think this is any better?
>test_for_myrequirement || exit 1
>exec mydaemon -myarg1 -myarg2

  This does not accomplish the same thing at all: it does not ensure
that myrequirement is at least attempted before mydaemon runs. Instead,
it conditions the readiness of mydaemon to that of myrequirement. So,
it is "better" in the sense that it does not control another service
from a run script, but it is even further from what the OP wants.

  Any reference to another service in a run script is going to be quirky
at best. Managing all kinds of dependencies between services is really
best done *outside* of run scripts, which is why s6-rc exists. It does
not currently have all the expressive power of systemd for dependencies,
but in the future, it will.

Received on Mon Aug 02 2021 - 23:40:39 CEST

This archive was generated by hypermail 2.4.0 : Mon Aug 02 2021 - 23:41:09 CEST