LinuxQuestions.org
Visit Jeremy's Blog.
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 08-30-2002, 03:39 PM   #1
NewRedHatter
LQ Newbie
 
Registered: Aug 2002
Posts: 10

Rep: Reputation: 0
Startup (rc, profile, etc) scripts


I hope I'm not boring (or irritating) people with my incessant questions. I'm just trying to get as quick a hold of this as I can so that I can get to being a bit more productive. My question is one, primarily of curiousity, but also for general-purpose info.

What is the exact order of the scripts called for a RedHat 7.3 (SysV init) startup procedure?

My question leads into another one that I've been trying to solve. In /etc/rc.d/rc.sysinit I see the following lines:


# Set the path
PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH


by the time init gets around to calling /etc/profile then the paths /sbin and /usr/sbin have been "deleted" from the PATH. I understand these aren't needed for anyone other than root really, but for me, the more important question is:

WHERE is this change occurring between rc.sysinit and /etc/profile???


The init procedure has to be doing something like:

Run /etc/rc.d/rc.sysinit
Change runlevel to 5 (X11)
.
. SOMETHING HAPPENS HERE
. (because PATH is changed)
.
Run /etc/profile
.
. SOME MORE HERE
.

(where user is the current user)

Any help with all of this would be MUCH appreciated.

Thx in advance
 
Old 08-31-2002, 01:36 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Track it from /etc/rc.sysinit -> /etc/inittab -> /etc/rc?.d/
question mark stands for a runlevel you are booting into (just substitute with a number that corresponds to your runlevel). After its done with all the scripts in the particular runlevel that start with S - boot sequence proceeds to login prompt - where you log in and /etc/profile -> /etc/bashrc -> ~/.bash_profile + ~/.bashrc
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
startup scripts iomari SUSE / openSUSE 2 10-19-2005 02:38 AM
startup scripts... ValidiusMaximus Linux - Software 8 01-11-2005 06:55 PM
startup scripts doralsoral Linux - Software 6 01-12-2004 04:46 PM
Startup profile?? kprocter Linux - General 1 07-08-2003 09:20 AM
startup scripts mimi Linux - General 1 04-24-2002 04:22 AM


All times are GMT -5. The time now is 06: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration