From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from alyss.skarnet.org (alyss.skarnet.org [95.142.172.232]) by inbox.vuxu.org (Postfix) with SMTP id 0A2452E84A for ; Thu, 5 Dec 2024 09:05:18 +0100 (CET) Received: (qmail 9202 invoked by uid 89); 5 Dec 2024 08:05:43 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 9193 invoked from network); 5 Dec 2024 08:05:42 -0000 From: "Laurent Bercot" To: supervision@list.skarnet.org Subject: Re[2]: Have an external script wait for a oneshot service Date: Thu, 05 Dec 2024 08:05:15 +0000 Message-Id: In-Reply-To: <4faed412-6fc0-4833-8f76-b6a74667c869@sopka.ch> References: <20241204140015.4e635037306d88117e053994@freesa.org> <2571a89b-ac74-4d9e-b8c6-ff0fe05cebb7@sopka.ch> <20241204141821.ee2a00c996c948f2feb42dec@freesa.org> <4faed412-6fc0-4833-8f76-b6a74667c869@sopka.ch> Reply-To: "Laurent Bercot" User-Agent: eM_Client/10.1.4588.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable >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"=20 >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