Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-30-2002, 02:39 PM   #1
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
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)
. (because PATH is changed)
Run /etc/profile

(where user is the current user)

Any help with all of this would be MUCH appreciated.

Thx in advance
Old 08-31-2002, 12:36 AM   #2
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


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 01:38 AM
startup scripts... ValidiusMaximus Linux - Software 8 01-11-2005 05:55 PM
startup scripts doralsoral Linux - Software 6 01-12-2004 03:46 PM
Startup profile?? kprocter Linux - General 1 07-08-2003 08:20 AM
startup scripts mimi Linux - General 1 04-24-2002 03:22 AM > Forums > Linux Forums > Linux - Newbie

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

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