theoldfellow at gmail.com
Sat Feb 17 00:29:29 PST 2007
Jorge Almeida wrote:
> I'm trying to understand how to use runit as substitute for sysvinit.
> The file hints/ATTACHMENTS/build-with-runit/build-with-runit-scripts.txt
> dates from 2004. Can anybody elaborate on this? (I mean, is it
> deprecated or just lacking a maintainer?) The hint says the author
> no longer supports using runit, but I really like the approach. Would
> the stage 1 and 3 files produced by the installer still be appropriate
> for a recent LFS system?
> Any input would be welcome.
I wrote it. And in fact have gone back to using it recently. The ideas
in the hint are still correct AFAIK, but there will be minor variations
with the increments of packages.
What I now do is to build LFS or CLFS according to the book, but omiting
sysvinit and syslog. I even install the bootscripts! Then I install
runit mostly into /sbin and /usr/sbin - I don't bother with dietlibc any
more. My /etc/runit/1 script is just a list of calls to the LFS
# system one time tasks
chmod 0 /etc/runit/stopit
The /etc/runit/3 script is similar, but with 'stop', and only for those
scripts that have something in the stop branch of the case.
test -x /etc/runit/reboot && LAST=6
echo 'Waiting for services to stop...'
sv -w196 force-stop /var/service/*
sv exit /var/service/*
I don't usually build gettys any more, as I build Xorg-7.x in chroot and
then just have xdm as a login. But this is my getty-1 run and finish
exec /sbin/agetty 9600 tty1
exec utmpset -w tty1
I hope this helps, if you need more just ask.
More information about the lfs-support