supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Guillermo <gdiazhartusch@gmail.com>
To: "supervision@list.skarnet.org" <supervision@list.skarnet.org>
Subject: Re: Scripting Stage 3 and 4
Date: Sat, 11 Jan 2025 10:22:21 -0300	[thread overview]
Message-ID: <CADQ2Nw_oCD=bk__4NezC8SpA=fKUdUNCy5koKECGiz_zykr2dg@mail.gmail.com> (raw)
In-Reply-To: <1dcb4b00-db5d-49bd-8598-fd6b2e5febdd@sopka.ch>

Hello,

El jue, 9 ene 2025 a las 17:25, Paul Sopka escribió:
>
> 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 —which
also surprised me a the time—. 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.

  parent reply	other threads:[~2025-01-11 13:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-09 20:25 Paul Sopka
2025-01-09 23:19 ` Laurent Bercot
2025-01-11  8:30   ` Paul Sopka
2025-01-11 12:21     ` Re[2]: " Laurent Bercot
2025-01-11 15:15       ` Paul Sopka
2025-01-11 13:22 ` Guillermo [this message]
2025-01-11 15:29   ` Paul Sopka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADQ2Nw_oCD=bk__4NezC8SpA=fKUdUNCy5koKECGiz_zykr2dg@mail.gmail.com' \
    --to=gdiazhartusch@gmail.com \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).