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 10906 invoked from network); 15 May 2022 15:02:57 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 15 May 2022 15:02:57 -0000 Received: (qmail 25719 invoked by uid 89); 15 May 2022 15:03:22 -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 25712 invoked from network); 15 May 2022 15:03:21 -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=Pj8uam1jBE9/KqeexKsNItmmEk5yzj2tGp5xEsPZROA=; b=gJUUbxGWb9XtD5YpvqUbAqSKU0EtEhFEABZdV2GAYyMOWHouyY/OLj17Rlgu4K263t 19kM0v2Ie286gKQQdjNHlG9DjNHqe40beOnkxjc0ROLjHkmyhcVw8XHLpxOpiGZafxZD l81LZMqB5hSsNSpxXs1+iSgBgiMzTHD0V6lWSkjBa4uHoS/UqSVyXjzlKnGkrdTaTngI fYAZtUKPGGB5yMDDsIPfKL/E7p326t/ElL+RtWi2R0niCyYskOoVjhFrAxQBi1ExYFmi 08FXEjeLnBydRkdzhnOnbU5UBXEbvJRJvZ2T2zxxvT4e0POfgFl31HFPO3B+VikoS+OI Th4Q== 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=Pj8uam1jBE9/KqeexKsNItmmEk5yzj2tGp5xEsPZROA=; b=bMtlb+u0ytskKlNaoxsIjl+oJspad2/Q53cAhNbRUZ23YKXql6lW2OjpQR4PmBZswo LRwjI3pQxLkoe7KLgEOjhpqhw46eO0BK1pZD4/HXwZPtU5OPNhTVmr/QaxWjWHszvWp4 bkbz93nLI6nRN4sh1M8EjY6/rI58+8OHYVus+X4nvkZv89UlDhLWH8W/r5XcHcOpimUw 0d9h1cUBxUO3Vu0aA2Rh5bGRd2YoCNZyz0JB4pcdo6tz6LjV6xGmFff2oMgSavOqhVZa dAm0eDH2SOelfyejYJblpg3Hxt4ir/bkX5Ybx8yzi8H4/QrOb8hrz9B92YWHZilkYQ28 2lIw== X-Gm-Message-State: AOAM532ItEvzaW1VAhVw5Uf/Gx8DYZ7YiZIg6XL8oiQgrCR7h823yRk7 tsb8QoaiXqxr3eVi1cFb3EXqvGFPyXNq5znV0AV0w4hGZOs= X-Google-Smtp-Source: ABdhPJwR90+JHEMeLQLfwBQ5t0exTajl7Pueb2SDUu9XISqw/DSGC9dmekjWNCC2RP1xHHJnfR018cijQAyQtrjX9N4= X-Received: by 2002:a17:90a:343:b0:1cb:234a:a975 with SMTP id 3-20020a17090a034300b001cb234aa975mr26256238pjf.83.1652626972536; Sun, 15 May 2022 08:02:52 -0700 (PDT) MIME-Version: 1.0 References: <3VJC4G8PXTKVS.3RQFDLXYQABMW@oak.localdomain> <3GMPPUYHIEJBK.3F20HQJFLEHMP@oak.localdomain> In-Reply-To: From: Guillermo Date: Sun, 15 May 2022 12:02:43 -0300 Message-ID: Subject: Re: s6 xinit replacement? To: Supervision Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El s=C3=A1b, 14 may 2022 a las 22:52, Laurent Bercot escribi=C3=B3: > > [...] it *is* possible to run Xorg under s6; several users are > doing so, and I hope they will post their setup. I actually don't run Xorg as a supervised process. I don't know what systemd-based GNU/Linux distributions do, but on Gentoo with OpenRC, Xorg is not started by the init system, it is started either by xinit, or by a display manager, so I kept it that way. When using startx from an interactive shell: PID TT EUSER COMMAND 1 ? root s6-svscan -X3 -- /run/service 107 ? root s6-supervise agetty@tty1 515 tty1 root \_ /bin/login -- 560 tty1 guiller+ \_ -bash 567 tty1 guiller+ \_ /bin/sh /usr/bin/startx 584 tty1 guiller+ \_ xinit /etc/X11/xinit/xinitrc -- /etc/X11/xinit/xserverrc :0 -auth ... 585 tty1 guiller+ \_ /usr/bin/X ... 589 tty1 guiller+ \_ /bin/sh /etc/X11/Sessions/openb= ox 650 tty1 guiller+ \_ /usr/bin/openbox --startup = ... When using a display manager (SDDM here): PID TT EUSER COMMAND 1 ? root s6-svscan -X3 -- /run/service 106 ? root s6-supervise sddm-daemon 702 ? root \_ sddm 704 tty7 root \_ /usr/bin/X ... 718 ? root \_ /usr/libexec/sddm-helper --socket ... --start /usr/bin/openbox-session ... 719 ? guiller+ \_ /usr/bin/openbox --startup ... So only the getty process and the display manager process are supervised. I'm not sure if supervising Xorg is worth it. Say that there is a transient event that makes Xorg crash. X11 clients would likely die because they lost the connection to the X server, and then xinit would exit, so the screen would just display a shell prompt again, or the display manager would just spawn the greeter again, so a graphical login screen would be displayed. If one is running Xorg, it is likely because one is running a GUI, right? And if one is running a GUI, it's probably because one is sitting right in front of the computer, and one would notice the shell prompt / greeter screen, and just type ''startx' / log in again. I mean, having a GUI on e.g. a headless server does not seem very useful. So I'd also be interested in what others think. (Maybe I should get into this IRC thing :) , and I think I'll reply to Samuel's post later). G.