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: XDG Base Directory Specification
@ 2024-07-05 23:35 Paul Sopka
  2024-07-06 21:58 ` Carlos Eduardo
  0 siblings, 1 reply; 13+ messages in thread
From: Paul Sopka @ 2024-07-05 23:35 UTC (permalink / raw)
  To: supervision


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

To keep all the stuff a bit organized, I will open another "thread" for 
this.

I have read through 
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html 
and to me the standards seem sensible. Most of it is the default of most 
if not all modern desktop programs anyway.

Therefore I would like to completely comply with them in this policy. 
This involves, but is not limited to, putting the live dir in 
XDG_RUNTIME_DIR. Bercot warned me in 
https://skarnet.org/lists/supervision/3114.html that this might be 
dangerous since it could be removed to quickly upon logout.

 From the start on, I planned to have all the XDG_* env's managed by the 
s6-rc system service which sets up the user supervision tree. This means 
setting the env's and, in the case of XDG_RUNTIME_DIR, creating and 
removing the directory on demand. By implementing this directly in the 
service with correct dependencies, this becomes completely safe and 
reliable.

Another suggestion was to delegate the creation and removal of 
XDG_RUNTIME_DIR to the login monitoring program (which will most likely 
be Turnstile), see https://skarnet.org/lists/supervision/3117.html. I do 
not think this is the best idea. Instead, I want to push as much basic 
functionality as possible to the s6/s6-rc services, for the following 
reasons:

1) s6/s6-rc is simple, fast and reliable

2) this allows for an easier future substitution of external programs 
used (e.g. substituting Turnstile for an alternative)

3) This allows for more fine grained control by the 
sysadmins/distribution contributors.

4) The service setting up and supervising the user tree is perfectly 
suited for this, my current, working implementation of creating and 
deleting XDG_RUNTIME_DIR containing the live dir consists of two lines 
of execline


Do you all have any objections/see any issues with the XDG Base 
Directory Specification and adhering to them?

Do you see any issues with my idea of how to handle the XDG_RUNTIME_DIR?

Any input is welcome!


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] 13+ messages in thread

end of thread, other threads:[~2024-07-17 21:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-05 23:35 s6/s6-rc policy for Gentoo: XDG Base Directory Specification Paul Sopka
2024-07-06 21:58 ` Carlos Eduardo
2024-07-07  9:06   ` Paul Sopka
2024-07-07 23:59     ` Carlos Eduardo
2024-07-08 12:55       ` Paul Sopka
2024-07-09 16:24         ` Carlos Eduardo
2024-07-11 14:54           ` Paul Sopka
2024-07-13 14:14             ` Carlos Eduardo
2024-07-14 23:01               ` Paul Sopka
2024-07-15  8:31                 ` Jan Braun
2024-07-15  9:35                   ` Paul Sopka
2024-07-17 17:13                     ` Carlos Eduardo
2024-07-17 21:35                       ` Laurent Bercot

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).