From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from alyss.skarnet.org (alyss.skarnet.org [95.142.172.232]) by inbox.vuxu.org (Postfix) with SMTP id 813C1283D8 for ; Wed, 3 Apr 2024 02:12:24 +0200 (CEST) Received: (qmail 61756 invoked by uid 89); 3 Apr 2024 00:12:49 -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 61742 invoked from network); 3 Apr 2024 00:12:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712103140; x=1712707940; darn=list.skarnet.org; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Nbkhmox0UXdpRh4pzwnlR9oSEZG6yzIvD04zAKXHCpI=; b=QZY7bUPKqUEdNorwudTAzKjXXUon5fUVA6NcuOR6wSRANAjDDcKjlmciOuL0IKOqdL Kcphu64FANN+MymwfjlYvjxVBx8eYW1N8ndnTLcxyvXw8tYNybvXGzZDkTN1u9MrqXI3 rt4HTzzU3vGkB/e8Ve/LMp6ZIuE3wBrRk780kqGkLKcCUDZs9myz4miY9Fi9vq6okEpE wfr1DXL51rOIM3/5vRO2iIkRMdCKuS3cK/ymsRVD8pgWFOo+ZGkcdIeHMIcf0OyaYBcT AZj5Ui9lOEQvbfHTiMuWuSW2sU6PTDIX93DrFNCsevmtUxXAP4s5MLl+cwkxfgOxlNDC vdBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712103140; x=1712707940; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Nbkhmox0UXdpRh4pzwnlR9oSEZG6yzIvD04zAKXHCpI=; b=G1pwAzwni0jwO74jUpyB0aDvWl8YyA9gvCr/VIwWO8peNHAIrvnzqoJHGMefZ7j1FK FYDWPtkIGvxEAoZ3brq3Uo9s0TiS08yeu9xlTQvqhRCeGJYfwyK42SirwRG8GlSCMQpO OLC9QnxI0k3kNlik+NA22lzVaP29ZeoH53gpIyCA9aAtLUsbkYlJCjhHCIBPd5pm2VIX 6f4GzHFUi7Ew0Qps/wev7MlZYomqjCVrcr4Jib+Diz4MRhVm9CvXFqmjFZxM6J4aN1Xw 3j4iEiFd0lFqrFjtNvKd+TfuipnpA8YgQ409NOMlCWyzqs2Lw6PX3HCaSukbKWu55pRB KzFQ== X-Forwarded-Encrypted: i=1; AJvYcCW0Y126OqMKTuma58E3Ntx0RNDAb3II6b/CXKbZu+bfzWshlooxrw65yT+kw32tTQ4j0R0ayNnqI8ET4QT7ZYcOP/7Hb8AL/98= X-Gm-Message-State: AOJu0Yxx3Y+ATmPVzmMfCGIdb9KQCnY4cRn0ENjN0N2rhiZb1HumEL7N KtBH4a7wXKvJ9RmbGt9FSdXYbobxug9TTSjnCasDBg2BdFj6WcGDzdqxvtHt X-Google-Smtp-Source: AGHT+IEU0sF3/pn1rswcSmigGhan4QqLHCtGNPTUIh+OGfHKB82keyYCmQPzSwfis4x0Qo0/9mAmPQ== X-Received: by 2002:a05:6a20:2446:b0:1a7:e94:3d22 with SMTP id t6-20020a056a20244600b001a70e943d22mr9118216pzc.0.1712103140192; Tue, 02 Apr 2024 17:12:20 -0700 (PDT) From: Alexis To: supervision , skaware Cc: Guillermo Subject: Re: s6-rc user services on Gentoo In-Reply-To: (Guillermo's message of "Tue, 2 Apr 2024 17:57:53 -0300") References: <87jzlgnzoh.fsf@gmail.com> User-Agent: mu4e 1.12.2; emacs 29.3 Date: Wed, 03 Apr 2024 11:12:15 +1100 Message-ID: <875xwznw2o.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Guillermo writes: > 1) Why are you telling dbus-daemon to --fork? That defeats the=20 > purpose > of service supervision. The service definition for the=20 > system-wide > message bus that I have on a Gentoo VM of mine with s6 + s6-rc + > s6-linux-init uses --nofork. > 2) The presence of a notification-fd file tells s6 that=20 > dbus-daemon > can be somehow coerced into producing an s6-style readiness > notification using file descriptor 3 without changing its code,=20 > are > you sure that's the case with this script? My service definition=20 > for > the system-wide message bus polls for readiness using=20 > s6-notifyoncheck > and a dbus-send command... These are both very reasonable questions, with the same answer: i=20 hadn't got as far as actually properly setting up the services=20 yet, but was merely creating 'placeholders' to (as i described in=20 my email to Ho=C3=ABl) get the basic overall setup working. So the=20 `dbus-daemon` command is literally just copy-and-pasted from what=20 i currently use in my .zlogin to start a session bus. My=20 apologies; i should have made this clear in my original post. Re. 1, i'm certainly aware that forking is undesirable in this=20 context; cf. a comment of mine i posted yesterday, the second one=20 in this comments section:=20 https://utcc.utoronto.ca/~cks/space/blog/linux/SystemdSocketActivationThoug= hts?showcomments#comments Re. 2, off the top of my head, i imagine you're correct; i haven't=20 yet thought about it / looked at it in any detail. > Most of the content is from around 2017, a time in which the s6=20 > suite > was less known, information in places other than the skarnet.org > website was lacking and inaccurate =E2=80=94despite official=20 > documentation, > while being short and to the point, has always been quite good=20 > and > complete IMO; it seemed people just didn't bother reading it?=20 > [1]=E2=80=94, > and there weren't many usage examples around. > > [1] I think I never said it, but what made me look at s6 for the=20 > first > time (s6-rc and s6-linux-init didn't exist back then), after=20 > seeing a > post in the Gentoo forums, was its documentation ("OK, nice > explanations, let's try this"). *nod* Fair enough! Yeah, as i wrote in the first comment in the=20 comments section i linked to above: > [A]s someone who spends a lot of time writing and maintaining=20 > documentation, i know that people apparently don't like reading=20 > the documentation. :-) At the same time, i know that many people (including myself!) can=20 sometimes struggle to "put all the pieces" together (either=20 properly, or at all), even with excellent reference docs (as in=20 the case of s6), in the absence of some basic, concrete, "actual=20 implementation" examples. Like, the mdoc(7) man page is excellent=20 and comprehensive, but to help people to get a sense of how easy=20 it can be to use mdoc(7) in practice, and hopefully encourage them=20 to use it, i wrote a quickstart guide: https://github.com/flexibeast/guides/blob/master/mdoc-quickstart.md Which is the sort of thing i'm hoping to do for s6-rc. :-) Alexis.