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 |
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 |
All times are GMT -5. The time now is 04:33 PM. |