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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15129 invoked from network); 18 Nov 2020 17:49:54 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 18 Nov 2020 17:49:54 -0000 Received: (qmail 30468 invoked by uid 89); 18 Nov 2020 17:50:15 -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 30461 invoked from network); 18 Nov 2020 17:50:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=t1ZU5RCcoXL9V8tuBiOK8hnUs1iYjcxTRyuojg79fWE=; b=pkcm2V5DyiyLlGgOhlS2Q1m86mbGUfqO/iaBs19lp+MNRXCcL6Vqjkw7uo2d8Y4DaX dTZE1kE7ISAdd7Z2aQSVzdwYCWm4I++AJggeUJDwLAztD6dxjPyQFlKngmO7NVTrXQVZ qVLcsEV3AoHKhHOg4wkSYVN1hjs+UHHq2YqwUUJASLl+P9ZNd3uzxFZjaA7yGU958GNO sf/eIfshKj13z5B1VVuLHioZGBkzmMsMDoAH2OtT8n4MrMODNc2EvCmluv1Ox+AnJqP+ B715eRt0hyOhsNMGngQOQ6/z30VHsv9H/l7ja5y2UU+jPiELB3RT+3Ss6vbegi3bz+zK 45gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=t1ZU5RCcoXL9V8tuBiOK8hnUs1iYjcxTRyuojg79fWE=; b=kjcnWqwI6iRFyFIzHy8TF+1ypnlQ96LhaC8vRXx2uo8d9DzvFKLBofroBEER9OYSYt 12tB3kyM2EX5mDHXrDdMqai+reh9yhukcDf2ymukzqYZJOXLiqReYtGU0yNnz7ByrAot TLrBFd9DQdcQwIkBix93oelI4MTR7neesZAXfPeQ6c6MJbl+zYKtGCqhQgSYRcJ9BuQr pqqTQh1U01VFp8o3bK2peiDf76r0kDPQLVtPghxay62JREz4nH/bEGySoee6uoity/VA Barpe2QjrHh+Z62WyEffMOT3JaCrWTzwkXFRiP+TYeoVvkAU3K2+j+98MZLl513vxNBm u+lA== X-Gm-Message-State: AOAM530NtfeF4lDEuY75D5rB3x/hKKy2APzc+Qk6tpuqD+K9jJjwKHno bUa3qILZbel+bP6PmwFl3hA2LjEaot2S4OFhL+G6csGwHVI= X-Google-Smtp-Source: ABdhPJyeallxPuD1oT2trftJOxDA/qON8ehkEzPcb6RdDslKq7lbTAh3xlP4XRadSokn6fcHqu4MR3oURBe8vYXsVqE= X-Received: by 2002:a19:3806:: with SMTP id f6mr4425122lfa.43.1605721787919; Wed, 18 Nov 2020 09:49:47 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Xavier Stonestreet Date: Wed, 18 Nov 2020 18:49:35 +0100 Message-ID: Subject: Re: s6-rc: timeout questions To: supervision@list.skarnet.org Content-Type: text/plain; charset="UTF-8" Thank you for your clarifications. > And then, of course, the point is that it's needed for oneshots, > which do not have the s6 mechanisms. Right. Understood. > >- Can you confirm that timeout-up and timeout-down are also used with > >oneshots? They are defined in the s6-rc-compile documentation, but the > >s6-rc documentation doesn't specifically mention them for oneshots > >state transitions. > > Yes, I confirm that they're also (and primarily) used with oneshots. > They're defined in the "atomic services" section, which comprises > longruns *and* oneshots. Could you elaborate a little more about the state transition failures of oneshots caused by timeouts? Let's say for example the oneshot's up script times out, so the transition fails. From s6-rc's point of view the oneshot is still down. What actually happens to the process running the up script? Is it left running in the background? If yes, is it correct to assume that since s6-rc considers it down, another invocation of the s6-rc -u change command on the same oneshot will spawn another instance of the up script? If not, is it killed, and how? I stumbled upon some unexpected behavior while doing some tests yesterday. I'd like to know if this is by design or unintended. Consider this scenario: 2 longruns s1 and s2 s2 depends on s1 s2 takes less than 1 sec to start and become ready on its own s2 has a timeout-up of 5 secs s1 has a run script containing an artificial delay of 6 secs Test 1: s1 is up and ready s2 is down s6-rc -u change s2 Success. OK. Test 2: s1 is down s2 is down s6-rc -u change s2 s6-rc: fatal: timed out s6-svlisten1: fatal: timed out Timeout failure. Unexpected. I thought timeout-up and timeout-down applied to each atomic service individually, not to the entire dependency chain to bring it up or down.