how to check the failed boot message

DJ Lucas dj at
Sat May 14 08:40:15 PDT 2005

Chakkaradeep C C wrote:
> hi,
> just check out at what initscripts file u r getting error and just use
> "echo" command in the initscripts file and "sleep 3" to make it sleep
> 3 seconds....and in this way u can find where actually the error
> is..........hope it helped u out........

This is a very good suggestion, to assist a bit more, just put a 'echo
$0 && sleep 3' just before the end of the boot_mesg() function in the
/etc/rc.d/init.d/functions script.  $0 is the name of the current
process (running script).  It'll be really ugly output for the ones that
work, but it'll help you find the error.  For a reference point, the end
of the function should look like this:

        # if CUR_LENGTH was set to zero, then end the line
        if [ "${CUR_LENGTH}" == "0" ]; then
                echo ""
echo $0
sleep 3

-- DJ Lucas

More information about the lfs-support mailing list