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,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28704 invoked from network); 24 Oct 2022 23:33:48 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 24 Oct 2022 23:33:48 -0000 Received: (qmail 29055 invoked by uid 89); 24 Oct 2022 23:34:10 -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 29048 invoked from network); 24 Oct 2022 23:34:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antonovs.family; s=20200215; t=1666654414; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=/BIjKbLNwqnw/bZUDMXr9SMAG3AX4G2qDL+YTOlUBUg=; b=nmBTPsY8u2g2QVW0ioK/KYxw1HmxRDg9ug90zW426xSVQvcMWxA3tDVFM8Gjd/QRcpp+qe IN+atIzqDXU6gIp9XdaOehNKQlQy9rj5OnSxcK5WncjSfoPIPlrXFFz0PMl0PTnnBh5H0m 3QC0Vui1nRpCbDoydCp3KEF8bFa8b9w= Date: Mon, 24 Oct 2022 16:34:12 -0700 From: Ihor Antonov To: supervision@list.skarnet.org Subject: Disconnect between s6-svscan and s6-rc Message-ID: <20221024233412.4pcy3baje2ly6lsr@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Skarnet Supervision Gang :) I want to run a thing buy you, to udnerstand whether I am not understanding something or misusing something or is there actually a problem. Here it goes: When I do s6-rc -u change myservice the command hangs, waiting for the service to start, keeps the ftfrig pipe open... The service does not start, because there is an error in run script. This can't be caught by compilation phase, in my case there was a missing env var that prevented a service to start, but I imagine there can be all sorts of issues with run scripts. The user of s6-rc gets no error message, and waits forever. The error message is captured by s6-svscan (or a corresponding logger for that service) and is either saved into a log file, or printed to a tty on which svscan is running. The user is almost never on the same tty with svscan. The user never gets an error message from the service, unless they explicitly know where to look. It would be nice if a user can get a temporary view into the service's stdout for the short duration of s6-rc execution? Such that when s6-rc never exits waiting we can see what the error message that service prints? Thanks Ihor