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.
