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 21254 invoked from network); 11 May 2022 03:36:29 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 11 May 2022 03:36:29 -0000 Received: (qmail 32675 invoked by uid 89); 11 May 2022 03:36:51 -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 32667 invoked from network); 11 May 2022 03:36:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:to:subject:message-id:user-agent:from; bh=0mvEAaL/dFbIYZRzLxXldhEczuYuurLsRp3bQzVauzU=; b=mHUa2sbFOdAiSQKTu+r8gEiOtfREw1Zjo+3euKeV6u9cTLWjSjSmSYE/FHq9WX6/6Q pBSluyQuHJLfUH2I15G/Ae06KBt7Lpx7kTNpMGsuGpjufj0HG6g7trrefc1uP+B6vZgT XGnZ7fmsMSEbSR212UzI7xdatPIK66MRDDxZCqQ0GJNGPGbAsTZ+dZ3iTP9cp5BqdW8J 2mCMqBNFYsJzY/UhZYgwqoB5C5fRmPAd4xK1bH/eA0s/+IrPaF8ksMZvEjCRJI7qeYve QApNatw6xul/8CZ1tX2xLo4cuLGPWDqVPYRaJ8mjdogxofzfT6F3pY0QkVbMKwGJt2Cw upag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:to:subject:message-id:user-agent:from; bh=0mvEAaL/dFbIYZRzLxXldhEczuYuurLsRp3bQzVauzU=; b=1gckEf2vuC+fFJfOlAOxcNMzVVc6M/mkeDdaX1ERu2cXKRX+lZfBEcS0qCmqfms5YQ 2ECT7w2vBIJd6RHrIy2HvyV+16z7r7F0EZHTNET2cjCxi+hujjo1JoCB9rhUcsWq1/IX a7y2KjDpk7c3ut/MiiusRS6+1HUrmvXfBici/suxi6o+iQan124wjC9yXTNQ18p6qVJ7 j1d0XXgmqmBkNPiQxh5EHqyewiTG3IYBZB1BrFP5WeAoofThqqqbzi5UVQ8hOyeVAR7w tSmotcPlGa2vpq0txeeJXy1tmF/T07HFdmeLZdmCEc4ObsWxatIw1y5cHUdSpr+D1xud 8MEg== X-Gm-Message-State: AOAM530y7ZroNyaEwxCeCsffMzX0sHXoKxoHq0Fz7lurd8TvA+C0P+DE rNz6v0b4ul1ToryI15X/io6QFDWhPGVpZQ== X-Google-Smtp-Source: ABdhPJxs+meeUCOoEWrm0a5gH4ReJBxAYWpjEZELBRuofbJ2aZQmxrOIo525Kvjlra5YuHlSI6/Mow== X-Received: by 2002:a17:90b:3b89:b0:1dc:68e2:10ba with SMTP id pc9-20020a17090b3b8900b001dc68e210bamr3165837pjb.199.1652240181878; Tue, 10 May 2022 20:36:21 -0700 (PDT) Date: Tue, 10 May 2022 21:36:52 -0600 To: supervision@list.skarnet.org Subject: s6 xinit replacement? Message-Id: <3VJC4G8PXTKVS.3RQFDLXYQABMW@oak.localdomain> User-Agent: mblaze/1.2-6-g793e22e From: dallinjdahl@gmail.com I had the thought to start up all my personal services with s6, and it's going well. However, looking at the xinit source code, it appears to start the X server, wait until it's up, start a client program, wait until it shuts down, and then kill the X server. It seems to me that xinit is effectively performing process supervision on the X server and client program. I tried to run X under s6 with the following run file: ~~~ #!/usr/bin/execlineb backtick -E screen { pipeline { tty } sed s:/dev/tty:: } export DISPLAY :${screen} X :${screen} vt${screen} ~~~ Unfortunately, the server never starts up, although I can run those commands just fine from the tty. The last few lines of my Xorg log are the following: ~~~ (WW) xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted (EE) Fatal server error: (EE) xf86OpenConsole: Switching VT failed (EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at (redacted) for additional information. (EE) (WW) xf86CloseConsole: KDSETMODE failed: Operation not permitted (WW) xf86CloseConsole: VT_SETMODE failed: Operation not permitted (EE) Server terminated with error (1). Closing log file. ~~~ Does anybody know anything about how s6-svscan and s6-supervise might change the environment so as to complicate running X? I've also checked to see if the tty got modified, but running the tty command under s6 from the tty console gives the same output as running it directly from the console. Thanks for your help! --Dallin