LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-09-2018, 03:56 PM   #1
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
sysvinit detailed sequence


Hi!

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).

TIA.
 
Old 04-09-2018, 06:43 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,767

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
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.
 
Old 04-09-2018, 08:07 PM   #3
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Original Poster
Rep: Reputation: 72
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
 
Old 04-09-2018, 08:10 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,376

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
Quote:
info on the sequence of these scripts.
Look in /etc/rc3.d
 
Old 04-10-2018, 12:53 PM   #5
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Original Poster
Rep: Reputation: 72
Quote:
Originally Posted by chrism01 View Post
Look in /etc/rc3.d
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:
Code:
/etc/rc.d/rc.sysinit
/etc/rc.d/rc.local
Sorry if I'm missing something obvious here.
 
Old 04-10-2018, 08:49 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,376

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
There's a good step by step here https://access.redhat.com/documentat...utdown-process.

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)

HTH
 
1 members found this post helpful.
Old 06-05-2018, 12:59 AM   #7
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Original Poster
Rep: Reputation: 72
Thanks a lot to all those who responded. Much appreciated!
 
  


Reply

Tags
centos, sysvinit



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sysvinit have new maintainer gmgf Slackware 10 01-16-2018 05:12 AM
Upstart vs SysVinit - which is better? BobNutfield Slackware 10 08-30-2010 05:37 PM
error in installing sysvinit saritha Linux From Scratch 5 01-18-2008 10:55 AM
upgrading sysvinit m_yates Debian 1 11-16-2003 03:02 PM
Psmisc, pidof - Ch 6.56.2, Sysvinit or not? itsjustme Linux From Scratch 1 07-28-2003 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration