From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13179 invoked from network); 14 May 2022 03:47:11 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 14 May 2022 03:47:11 -0000 Received: (qmail 27202 invoked by uid 89); 14 May 2022 03:47:33 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 27195 invoked from network); 14 May 2022 03:47:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=7pzyz+3656iwN/4qGCk1K1TjLbzPnpsOcKIearGjBzQ=; b=BQ6iJPYX1lgkSpT7OJTFNbfqBLXQMQ0ojKWxm5UFgl0UrCHNVymkbqZwiytAPTp23S K2CuOPvU6f9CzbAdPUkGqEcnqL5WdEZ9QnrIW7R9/9OmDhc1GxFZ82wIjwziz8W3gAUW 2A4VZi74o6TBMnO+Tj2S++wFbRfAKH0OAY4rRNafAS14ZFXtbCgOFCkITT/kwgU7Rx4k lHnkIl2A2nYFuadU7/au5utYio5WznKmVk3VaMnxqfMfoMjBzwW0m+NmkBIPes+pOS4N sQLwyBeROcB3zsFsv8HfJfH82kbsr9oaUbwEXXZIGGLXFafmTTwNdu1AE+GHDuk/aNHf mXIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=7pzyz+3656iwN/4qGCk1K1TjLbzPnpsOcKIearGjBzQ=; b=I3uqzWTOrNcGwk7ED+60dOWmbo0a5owLjTtZypteUt4IdxFFdF2NkouYphEozNMJw6 CQBFIk0O/z/LYOy4sK0zfQNuJeAWiHep086jja7LGzORoWkWku+JD9DSSBZEpw+PIUR+ 3vX2wdWgbrJYXc0PGl58AOpeQDZjPRKHi4ynjDshvADFwcSbS7obumchRe73XP42szT5 0UaxdLmGAhlHo9pqZzYxlfOJMfL4RZw9739AQUo0BS8Arq08uxdsswDT131DgUKFec9F ozKnLuAiAj7RgyuBBqrLUw2IQS0oVhFXxeyjeT/PSbkt8UkRJEkC7u66sTGRczpTQe8A nTZw== X-Gm-Message-State: AOAM532RRCWHpKXkMYvtBUp4pds1RCKBgG9OGJUX+aKeidNSLnyW+0xO gipdIbm+y8soLucmho57Ii2Rm0HkCa1IpGpVz6DKB2mh X-Google-Smtp-Source: ABdhPJy0s8pT8c9ss9Hf6LKVURPkZqWB2G+ghdKBvIVH4gjfqWLXz7jBRaoUVltq9H7E+lsC0537saS5ODfzWQv3ExU= X-Received: by 2002:a17:902:f710:b0:15f:165f:b50b with SMTP id h16-20020a170902f71000b0015f165fb50bmr8032896plo.158.1652500023883; Fri, 13 May 2022 20:47:03 -0700 (PDT) MIME-Version: 1.0 References: <3VJC4G8PXTKVS.3RQFDLXYQABMW@oak.localdomain> In-Reply-To: <3VJC4G8PXTKVS.3RQFDLXYQABMW@oak.localdomain> From: Guillermo Date: Sat, 14 May 2022 00:47:00 -0300 Message-ID: Subject: Re: s6 xinit replacement? To: Supervision Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, El mi=C3=A9, 11 may 2022 a las 0:43, dallinjdahl escribi=C3=B3: > > I tried to run X under s6 with the following run file: > > ~~~ > #!/usr/bin/execlineb > [...] > X :${screen} vt${screen} > ~~~ > [...] > (WW) xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted > (EE) > Fatal server error: > (EE) xf86OpenConsole: Switching VT failed > [...] > Does anybody know anything about how s6-svscan and s6-supervise might > change the environment so as to complicate running X? 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 when run by s6-supervise, because s6-supervise executes the 'run' file in a new session, so there is no controlling terminal. You can see Xorg fail in the same way if you do: $ setsid startx Using util-linux' setsid(1), or: $ execlineb -Pc 'background { s6-setsid startx } exit' G.