Re[2]: Have an external script wait for a oneshot service

From: Laurent Bercot <ska-supervision_at_skarnet.org>
Date: Thu, 05 Dec 2024 08:05:15 +0000

>To be more precise, I have the following setup:
>- A longrun L setting up s6-svscan for a user-service-tree.
>
>- A oneshot O setting up "s6-rc-init" and "s6-rc start default".
>
>(two allow users to have services running on boot without login)
>
>- A script run on login (bee it by PAM, .profile or another way),
> that starts user services only useful after login, e.g. pipewire.
>
>Now of course the script should only be ran after the the "s6-rc-init"
>oneshot.

  I get the feeling there's an XY problem here, or some confusion (but
maybe just in my own brain) because user services are an underspecified
concept. Can you please describe the details of your setup: at what
time do you want to start up a supervision tree and an s6-rc-init
process for a given user?
  - at boot time? if so, how do you decide what users to start a
tree for?
  - at login time? if so, you have a script that you run at login time,
I don't see the problem here: start the tree and the s6-rc-init in that
script, not as a part of a set of s6-rc services.

--
  Laurent
Received on Thu Dec 05 2024 - 09:05:15 CET

This archive was generated by hypermail 2.4.0 : Thu Dec 05 2024 - 09:05:44 CET