Re: s6 xinit replacement?

2022-05-14 Thread Samuel Holland
On 5/13/22 10:47 PM, Guillermo wrote: > Hello, > > El mié, 11 may 2022 a las 0:43, dallinjdahl escribió: >> >> I tried to run X under s6 with the following run file: >> >> ~~~ >> #!/usr/bin/execlineb >> [...] >> X :${screen} vt${screen} >> ~~~ >> [...] >> (WW) xf86OpenConsole: VT_ACTIVATE failed:

Re: s6 xinit replacement?

2022-05-14 Thread Laurent Bercot
Is the purpose of executing setsid() in s6-supervise to allow for the services to continue beyond the termination of the supervision tree? It's actually the opposite: it's to protect the supervision tree against misbehaved services. :) setsid() makes sure the service is isolated, and a killpg()

Re: s6 xinit replacement?

2022-05-14 Thread dallinjdahl
Hello, Guillermo wrote: > If the Xorg process does not run as root, the tty specified in the vt > argument must be its controlling terminal. It works if you run X from > an interactive shell (perhaps indirectly through 'startx'), because it > inherits the shell's controlling terminal. It doesn't