Re: Have an external script wait for a oneshot service

Hoël Bézier <[email protected]> Fri, 6 Dec 2024 17:11:26 +0100
Newsgroups gmane.comp.sysutils.supervision.general
Message-ID <Z1MiLtRwfFO-ecJg@sparta>
>>Assuming s6-rc is used for the main supervision tree and on login,
>>which is fair, since the very thing we discuss about is part of my project
>>doing all of that with s6-rc,
>>this would cause users to need to learn s6 additionally to s6-rc,
>>when s6-rc can be used for all cases.
>
>  The vast majority of services a user will want to have are longruns.
>And longruns are run under s6; longrun service definition directories
>are pretty much s6 service directories. I don't think it's honest to
>say "you only need to learn s6-rc, not s6"; the s6-rc learning curve
>*includes* learning at least the fundamentals of s6.

As a matter of fact, I’ve setup “user services” on my computers (services for 
one user only actually, I do not care about edge cases since I’m both root and 
the regular user) a few months ago with s6-rc, and up til now I only have 
longruns.

I do have though dependencies between these longruns, mostly between the user 
dbus service and other user-specific services that depend on that thing, like 
pipewire.

Not sure it would justify the use of s6-rc, because one could just let pipewire 
start and die until dbus is run. Or consider these services do not make sense 
when the user is not logged in, so that they will be run by s6-rc on login.

Hoël
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEElZjiR4iQkYjVEGdt6jPCPrF3Nk0FAmdTIi4ACgkQ6jPCPrF3
Nk1cShAAhtcV+ywalFeRc98iQ9iIjrqOmLaSABjNGR8s93Q50YU8Qig9qZNdHmza
Hw1+FrzSG5fYKiSJfh3T6oRn2GeeD3lBMpSM7vwVQhKjuKw7PzVchb42+6TOe8ts
aMsIFCzO4anq0rVvsbMFgx+TIt4Q0ibEJkcjPYjBAvov4wQlewenos+04VIvXKL7
OqEUJF2fyWCb6owloNSEBpEeLxvZ37LPXsOgFZfl0zf9c8CdMH+qj1bWELnlGor9
/E1Gl4MIp4npdp/AUt+4DCiutiLADStBP4+war34Vn159yJ/kU7P5aAtM8RRuLyJ
huPxbwW3TILtUbieDRz1Mlcl+mBLxjk8LH6OjZFEN9e+Xk+jUKLBARO5PfvVRMby
GgOz2S35gLaD38QPV7ybJJOu5GUqbqQy6ONY5rtdOloAIACnlvyQ0O1gp4WJnpy+
ZpveEP6P1LTQrXZMoTsmFZfG6M/Im1c30DyTUOIEWfQU+smVRG+Zi96PHlUVHxcA
JTGKWEc/lbwOSdkSHR4ryovsbcFVlElbw1ldlUrSbJV3bV+dU93F+HAzefqzbO6g
DZWh8qV7vbk2zG5XfgwnzQHr394P/r0AUW73DFX9S0dLLlPI3N3pMwQim0KWqld6
hu1HjWaBThwaMeXiECqIsP5dXBNM3V01HW0j2MdHtBOwEIDTYxM=
=fbYw
-----END PGP SIGNATURE-----