Open Nanderty opened 4 months ago
1 and 3 are probably better implemented as a separate PAM module and disabling turnstile
's handling of XDG_RUNTIME_DIR
.
FWIW, I was able to integrate s6-rc pretty neatly into turnstile without any of these changes; the only clunky part is that the service management layer is effectively a one-shot (s6-rc-init
) that must be run after the actual supervisor (s6-svscan
/s6-supervise
) is ready, but this doesn't require adding more environment variables to the ready
call, only some file descriptor wrangling (which the execline language makes easy).
I know I already commented here, but after thinking about it a bit more, I think this is worth it's own issue. As far as my understanding of Turnstile and s6/s6-rc goes, Turnstile needs two more things to allow s6/s6-rc to elegantly integrate with it:
This would allow the following:
I know Turnstile is supposed to supervise the user service tree, meaning that a) is probably what you intend. But I would argue that giving sysadmins/distro maintainers the choice to also do it in the b) way is a good idea.