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 62A3821570 for ; Tue, 2 Apr 2024 22:58:08 +0200 (CEST) Received: (qmail 55100 invoked by uid 89); 2 Apr 2024 20:58:32 -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 55086 invoked from network); 2 Apr 2024 20:58:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712091484; x=1712696284; darn=list.skarnet.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=50bNSwugpKDdXOAK3avF6DPVi2qWfAfn4AZKAO1v8cM=; b=SKn48nuMG4RaAQTLLOVybCV8cK8eWiKktrT19TmSZLbXwIqfGUJc/ptVX0jvfMGf+r wgy9PnQXa+5YYtBR1zrr+gErqYNoi/3gDP7O3OA4fRb4KhBGhzLBvQoLush/I21IVEc2 vzqCwLA3qvvvIe6xWzmY20ClDcy3SYSZy7wUjDxd25Oc8FGTtFLO5oIBo5nlHUFncr+y /zJ3YfZDxb9URAylmPp8AtFD4bVkLQ4khtPvXbXl+SNkP7IMGgT6yYo/nRZqe1MMxkVT AbpzG8OauvbPA/ankgLADnwiswhf8nBbFY51vo5I2CxPoQ6NMeEUgk+lpsccznKa+9qP ob9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712091484; x=1712696284; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=50bNSwugpKDdXOAK3avF6DPVi2qWfAfn4AZKAO1v8cM=; b=fbXDhR5Rd9AAWREPX76WVs9Hsr3V6Bs4XZigJ6r/oUwAWasT5k1YchzGbfuSjbsufa 68t208JK/SwoiLWon1hrVi6/ArvGMlnu1idy8K2LHNomKPI5T/xiJin2R3gKc5+ThOQs hnqLgQEnvUn+rvsJQiFMyt7Spqos1lyUFSONvCwVG1kiyQoXRHgD91Jyl5OP8XN6IyKo eneX57RmzxxV7fN8SVIZl4BB6sk7b2AQ8VQy1H2AVma4LmDj0AxmYu58ATKGieJsHRSi 5nEjRtFZryeshO2Zum7CyxI/tfeWb1ybBBIb/5G8qeu+EkIvFd0PXKfkMVLMHJBC1UGj k1xw== X-Forwarded-Encrypted: i=1; AJvYcCXrX+sGE0HEBLXztFAloh0eMVtQ3xQUMWyamCHbx38yY7mhRj8D79xVNlVtF2aKbrTr78SjnsePhL6jlAIZuVsThVrfcUlbUMo= X-Gm-Message-State: AOJu0YzPM+hgtUCHt0/WcMyncOT5K3FM15PkO7Ki8yBZNHMOtOBX11Eb DFnmj9c5QFEvoJ8CQtYtn4EiGSG99yquZ3UP5uHaImuKYxbu7vx5GmDforvkeM/ck/68b+FL65e SGTOcv8Q9EYIm98BqOUCTOOTTDOm7JBoHqhk0GQ== X-Google-Smtp-Source: AGHT+IH3/vo58VNFXJ6dQIoomk/UHOPopOEI3S8+n9bTy8AgKBmF8w9RAqTqYL4SZGbgcMP09junWbTGPoYzlbix0g4= X-Received: by 2002:a05:6870:3481:b0:221:8a03:6de7 with SMTP id n1-20020a056870348100b002218a036de7mr13791456oah.32.1712091483405; Tue, 02 Apr 2024 13:58:03 -0700 (PDT) MIME-Version: 1.0 References: <87jzlgnzoh.fsf@gmail.com> In-Reply-To: <87jzlgnzoh.fsf@gmail.com> From: Guillermo Date: Tue, 2 Apr 2024 17:57:53 -0300 Message-ID: Subject: Re: s6-rc user services on Gentoo To: supervision , skaware Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, El mar, 2 abr 2024 a las 1:42, Alexis escribi=C3=B3: > > S6RC_SERVICE_REPO=3D${HOME}/src/srht/gentoo-overlay/sys-apps/s6-rc-serv= ices/files/ > > * The above directory contains two service directories: > ** dbus-session-bus/, containing: > *** type: longrun > *** notification-fd: 3 > *** producer-for: dbus-session-bus-log > *** run: > #!/usr/bin/execlineb -P > importas HOME HOME > redirfd -w 4 ${HOME}/.env.d/DBUS_SESSION_BUS_ADDRESS > dbus-daemon --session --fork --nopidfile --print-address=3D4 You already got an answer about why s6-rc-init doesn't work (the scan directory and the directory of service definitions given to s6-rc-compile should not be the same; let s6-rc-init populate the service directory). I'd like to comment on what you didn't ask :) 1) Why are you telling dbus-daemon to --fork? That defeats the purpose of service supervision. The service definition for the 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 dbus-daemon can be somehow coerced into producing an s6-style readiness notification using file descriptor 3 without changing its code, are you sure that's the case with this script? My service definition for the system-wide message bus polls for readiness using s6-notifyoncheck and a dbus-send command... > [a] The current s6 and s6-rc pages on the wiki have lot of detail, > without any "quickstart" tutorials that might make it easy for > people to get on board. Most of the content is from around 2017, a time in which the s6 suite was less known, information in places other than the skarnet.org website was lacking and inaccurate =E2=80=94despite official documentation, while being short and to the point, has always been quite good and complete IMO; it seemed people just didn't bother reading it? [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 first time (s6-rc and s6-linux-init didn't exist back then), after seeing a post in the Gentoo forums, was its documentation ("OK, nice explanations, let's try this").