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.9 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 C9DDE20025 for ; Sat, 11 Jan 2025 14:22:38 +0100 (CET) Received: (qmail 63038 invoked by uid 89); 11 Jan 2025 13:23:03 -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 63031 invoked from network); 11 Jan 2025 13:23:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736601754; x=1737206554; 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=h6LSTsSKqPHFT9KxrIJthR8mkQ1LCnFl1Sy7IhFmVhI=; b=Brj6bD5GHIV6fCtgWUsuZUhLq3/xXLvu1Ryy9BF7DLkciDGGIQ4iff+Ioc3XbJcEuo UNHHcW7crlGO9HFHy8dRs9C6AzvombfnLbBZwSXWJyRYOvgUVH6zfpKT1/iWvaiOPB7V 0TCjKCbAdlXY5aw5XRSpYlJlRDgTy/jWU86KQt5GVgY0yLLjLpYBgOGBpEFZJoYMU+zD soT+jQ6XwiXy0ST6FLTHEwV/kps+YdyFwZZEEvgoWW1/6iVFMgDx6JScjJW0y3edASNL tX+1W4K1m+Gm0gdAnFlCbwhDl1uYaCpK+p4aCAWSZrdCpzgzKJXMTX1bvxpehod0h7SD R0Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736601754; x=1737206554; 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=h6LSTsSKqPHFT9KxrIJthR8mkQ1LCnFl1Sy7IhFmVhI=; b=kAAtLJjlpgyfqXMuxEn7JsIBCd+gF1jb/iUFX8mnCKTgQovkCbfH7nbnaC9Ji70Yfv H9xksOY4Z+qo/G/e4jlt2kJ8VgK8OMSprZBG/Ps5Y8Z+mOPcBeAyOGdps3B6FHo7Wl3n 4CxwvPRSjzEXf/iVdJ7sr8Xk6C1IEUmjOS+N1OYRbz8EBIAtlIWVTEepGZmtVHzYt/8v tiGapd89aC+vbbhpI//LnehtoLk8TiY71vY1kL8Pz5WxL2o8KkA1y+IFVmRQ6CXpS6jv lnpZv+cHOvFsvkJ8OltpDLWMqC+sWaBvB76upXagmYJ2YkLU5JpaAl38gQagc4bgZ8AH 1Y5A== X-Gm-Message-State: AOJu0YxM6LvBCu1CbZOtn5kMpizsdn4fSyJ3EyKy22fMYn+QmONg8sLa XFS2reBlNvd3+91+kqrv++2UCM72ZikuSqRTAHv7lMwJDPIzP19kwm+GM/yqlfu+IkaXJlpk+U+ atoDgpmrd+1Bs965zM7wto1URtbwzSw== X-Gm-Gg: ASbGncvQ2xm2e4Zdmd+i3Tm/KXzWtJvnMZYlens99MRsSf4BCSeXKwxpI+4EkfDAZmp yKPrd53UF1QpMgKyF7rmtQSZ+4PIKqhr1cIdrSw== X-Google-Smtp-Source: AGHT+IGagJVHkK/xO6wk4prGMjsU+DYF+b8t058zF1hd5UglfLKh4Z3Ny71GaYnuD2lbW5pGZ/OkjrPSZI30cQW5FIk= X-Received: by 2002:a05:651c:b1f:b0:306:f7:c40a with SMTP id 38308e7fff4ca-30600f7c566mr33753881fa.18.1736601753860; Sat, 11 Jan 2025 05:22:33 -0800 (PST) MIME-Version: 1.0 References: <1dcb4b00-db5d-49bd-8598-fd6b2e5febdd@sopka.ch> In-Reply-To: <1dcb4b00-db5d-49bd-8598-fd6b2e5febdd@sopka.ch> From: Guillermo Date: Sat, 11 Jan 2025 10:22:21 -0300 X-Gm-Features: AbW1kvaOZTTbJ8qrh1wkEvCWY3OqN811qwA2ZA9-H0SEATV9x9wFN9ZVRPAwE4k Message-ID: Subject: Re: Scripting Stage 3 and 4 To: "supervision@list.skarnet.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, El jue, 9 ene 2025 a las 17:25, Paul Sopka escribi=C3=B3: > > I figured that other people might also have some interest in this, > so I am posting the question here. May I ask if there is a purpose to this other than doing it as a learning experience (if so, then by all means carry on)? Do you see a problem with just using current s6-linux-init? > Now I was wondering why you, Laurent recommend against using the finish > script of s6-svscan > for the shutdown procedure (here: > https://skarnet.org/software/s6/s6-svscan-1.html#stage3). > > Using that would make good portion of my implementation more elegant and > simple, [...] Perhaps you already know, but if you are interested in comparing, one can still download s6-linux-init-0.4.0.1 from the skarnet.org website for studying, which is the last version that used an execline stage1 init, performed the shutdown procedure in .s6-svscan/finish and shipped small C programs that probably did the same thing that linux-powertool does here, before the change in package design =E2=80=94whi= ch also surprised me a the time=E2=80=94. Although s6 dropped in version 2.10.= 0.0 the functionality that allowed those to work, and you'd need skalibs-2.8.0.1 to be able to actually build and run that version of s6-linux-init-maker and s6-{halt,poweroff,reboot}. G.