supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* s6/s6-rc policy for Gentoo
@ 2024-07-05 14:09 Paul Sopka
  2024-07-05 20:23 ` Mobin Aydinfar
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Paul Sopka @ 2024-07-05 14:09 UTC (permalink / raw)
  To: supervision


[-- Attachment #1.1.1: Type: text/plain, Size: 1805 bytes --]

Hey everybody

I am currently working on implementing boot scripts, system services, 
user services and general policy for Gentoo with s6/s6-rc.

I will soon (once I consider it acceptable) publish a github repo of my 
current state, so others can criticize, improve and suggest components. 
The plans is to, after some fleshing out, open another repo containing 
an overlay with a profile and some packages, so it can be easily 
installed for testing purposes. In the best case this shall once be 
merged into official Gentoo.


Currently I see two major things I still need to solve:

1) A service monitoring logged in users, starting the user supervision 
tree on the first login of a user and stopping it once the user logs out 
from the last shell/display manager

2) An elegant way of synchronizing environment variables between the 
users supervision tree and its services and the users login 
shell/compositor/...


Regarding 1) the best idea I currently is to have a daemon monitoring 
/var/run/utmp, starting an sub-process/s6-rc service for each user 
appearing there and stopping this sub-process/s6-rc service once the 
last login instance of the user vanished from that file. Since I have 
very little programming experience, I wanted to as you, Bercot, whether 
you consider this a good idea and if you do, whether this would be worth 
a s6 program. Can this be achieved in a better way?

Regarding 2) I do not currently have an idea.

Apart from those, there is still a lot to do, e.g. writing basic service 
scripts, and improving and expanding the boot scripts.

Of course, I will notify this list once the repo is up.

Any suggestions and ideas are welcome, even if they do not belong to 1) 
or 2)!


I wish you all a nice weekend!

Paul


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3195 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-07-08 13:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-05 14:09 s6/s6-rc policy for Gentoo Paul Sopka
2024-07-05 20:23 ` Mobin Aydinfar
2024-07-05 21:43   ` Paul Sopka
2024-07-05 20:54 ` Laurent Bercot
2024-07-05 22:27   ` Paul Sopka
2024-07-06 10:40     ` Laurent Bercot
2024-07-06 13:09       ` Paul Sopka
2024-07-07 15:18         ` Hoël Bézier
2024-07-07 15:56           ` Paul Sopka
2024-07-08  7:16         ` Jan Braun
2024-07-08  9:03           ` Paul Sopka
2024-07-08 10:48             ` Jan Braun
2024-07-08 13:10               ` Paul Sopka
     [not found] ` <CAN09KnJje7L-W5BaBjMgPou_=uXwfZvsLGrnoirofRNqdU+Yqw@mail.gmail.com>
2024-07-05 23:03   ` Paul Sopka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).