I'm using runit as alternative to sysvinit. Booting is no problem.
Rebooting is terribly slow. After issuing "init 6", a normal-looking
message appears, concerning services to stop. Then nothing for a long
time. If I press <Ret>, I get the shell prompt, and I can do "ls", for
example. It would seem that it won't reboot. But it does, eventually. I
can't grab the last messages, which go too fast.

The only services I have for now are 5 gettys, gpm, socklog-klog and
socklog-unix. As for stage 1 and stage 3:

        $ cat /etc/runit/1
        #!/bin/bash
        # system one time tasks

        PATH=/sbin:/bin:/usr/sbin:/usr/bin

        /etc/rc.d/init.d/mountkernfs start
        /etc/rc.d/init.d/modules start
        /etc/rc.d/init.d/udev start
        /sbin/dmsetup mknodes && /sbin/vgscan -v --ignorelockingfailure && 
/sbin/vgchange -v -ay --ignorelockingfailure
        #
        echo "* Running hdparm on /dev/hda..."
        /sbin/hdparm -d1 -c3 -m16 /dev/hda
        echo "* Running hdparm on /dev/hdb..."
        /sbin/hdparm -d1 -c3 -m16 /dev/hdb
        #
        /etc/rc.d/init.d/swap start
        /etc/rc.d/init.d/checkfs start
        /etc/rc.d/init.d/mountfs start
        /etc/rc.d/init.d/udev_retry start
        /etc/rc.d/init.d/cleanfs start
        /etc/rc.d/init.d/setclock start
        /etc/rc.d/init.d/console start
        /etc/rc.d/init.d/localnet start
        /etc/rc.d/init.d/sysctl start
        /etc/rc.d/init.d/random start

        touch /etc/runit/stopit
        chmod 0 /etc/runit/stopit

        $ cat /etc/runit/3
        #!/bin/bash
        exec 2>&1
        PATH=/sbin:/bin:/usr/sbin:/usr/bin:/command
        LAST=0
        test -x /etc/runit/reboot && LAST=6
        echo 'Waiting for services to stop...'
        sv -w196 force-stop /etc/runit/runmodes/current/*
        sv exit /etc/runit/runmodes/current/*
        #sv -w196 force-stop /var/service/*
        #sv exit /var/service/*
        /etc/rc.d/init.d/random stop
        /etc/rc.d/init.d/localnet stop
        /etc/rc.d/init.d/mountfs stop
        /etc/rc.d/init.d/swap stop
        vgchange -v -an --ignorelockingfailure
        echo 'Shutdown...'
        sleep 2

(I'm not sure whether this is the correct list for this kind of
question...)
-- 
Jorge Almeida
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to