runit on LFS
The last few weeks I have been going through the Linux from Scratch 12.4 book, the System V version of that. I only realized later that they discontinued the development of that earlier this year, meaning going forward the future versions will be systemd based. Which I find a bit of a pity, because I wanted to learn specifically, how Unix actually works, and what you need for it, without the endless complexities of systemd. I still remember systemd being introduced everywhere just after I got into Linux, and I just had gotten used to dealing with the normal Linux init process. And then this giant mess of complexity was dropped into my lap and I had to throw out all the knowledge I gained before. I was not happy. Over time I got used to working with systemd, but it still feels way more cumbersome and intrusive than I'd like. So anyway, many systems nowadays are using runit as an init instead. Ok, many systems nowadays are running with busybox as well, and that one has an inbuilt version of runit. But after I was finished with the original LFS book, and partway through BLFS (Beyond Linux from Scratch), I decided to deal with the init system.
It turns out this is easier to replace than I thought. Runit can be had on the author's website: [https://smarden.org/runit/]
runit should go into /sbin
runsvdir, runsv, chpst, svlogd, and sv should be moved to /usr/bin
runsvchdir and utmpset to /usr/sbin
The man pages in the man folder to /usr/share/man/man8
But the tricky part with runit are the scripts needed for the system to start up in the first place. Luckily there are some scripts under [https://github.com/inthecloud247/runit-for-lfs/] which mostly work. It also has a very good INSTALL document that helps with installing runit.
The repo is over 12 years old now, but outside some basic stuff (udevadm is installed in /bin instead of /sbin now) they seem to be working fine
You might want to check the 1 script in the /etc/runit folder if everything is alright. This is basically your startup script that runs everything the system needs to boot.
btw, there is another runit for lfs repository around that looks all nice and professional, and which purports to have a whole runit environment to use, but the author admit to having vibe-coded it, and when I tried it it showed. As in, it didn't. Run at all I mean.