Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to figure out a boot issue on a Cent6 machine, and I'm trying to figure out what's causing it to stop booting. I can provide the exact error but I'm trying to figure that out myself. I was thinking I might need to understand the exact sequence of bootup so I was looking for documents on that, but I can't find any.
This is for cent/rhel 6 (with sysvinit, obviously), setup for runlevel 3 (/etc/inittab).
Look at /var/log/boot.log -- that captures the messages as displayed on the screen during boot. If your logs are rotated, you'll hopefully have one without the error so you can see the entire boot sequence.
Thanks, that's what I am looking at, but I wish to see what actions are done per step..the thing is, one server stopped booting at some point and I was trying to trace what it was doing using the scripts in /etc/rc.d but I don't have an info on the sequence of these scripts.
I'm also attaching a screenshot of the last thing on the boot console. Any idea what I should check next? https://imgur.com/a/LHhLZ
Yup, I understand that those are the scripts for the runlevel.
So this is the boot process:
Code:
Bios > mbr > grub > kernel > init > runlevel
I'm convinced that the issue happens somewhere between kernel loading and init 3, but I can't figure out where. Also, I understand that the following scripts are in sequence, but I can't put them in the big picture:
In response to your specific qns:
/etc/init.d - contains actual service programs / daemons startup scripts
/etc/rc3.d - numbered symlinks to /etc/init.d - defines order in startup scripts are called
/etc/rc.sysinit - called just after kernel start - before rcX.d
/etc/rc.local - called absolutely last - used to eg startup a script/dameon you want where you can't be bothered to crate a proper script in init.d & assoc symlinks for various startup levels (runlevels)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.