how to change run level priority in Redhat 8?

Jugernot

Diamond Member
Oct 12, 1999
6,889
0
0
I need to intitalize my PCMCIA before my network starts... how do I change the run level at boot to change the squence in which they start up?

THanks
 

HigherGround

Golden Member
Jan 9, 2000
1,827
0
0
change the [XY] in S[XY]pcmci sym link ( /etc/rc.d/rc5.d/ or any other runlevel you have configured, namely 3 ) to a number lower than [XY] in S[XY]network ( same directory )

 

drag

Elite Member
Jul 4, 2002
8,708
0
0
You may need to edit the initialization scripts manually, If ya can figure out were they are you may be able to simple cut and paste the section on pcmcia in front of the section about network initialization... or maybe commit out the network stuff and put it after the pcmcia stuff, which may be a better idea. I forget though the details about RedHat's startup scripts.

Runlevels simply refer to different states your OS goes thru... for example runlevel 6 activates a bash script that goes thru the shutdown steps to properly turn off your computer... you can do that manually usually by the command "tenit 6" usually, The trouble is that the whole linux runlevel stuff is not set in stone, each distro tends to have it's own variation.. with a couple distros completely different. Generally all the runlevels mean the same thing.. runlevel 6 is the same thing in Redhat as Slackware, so is runlevel 1 and s, but the location and structure of those corrisponding scripts are completely different....

I just installed RH8 so I could tell you exactly what to do, but I am at work right now so... If your lucky RH may have a gui runlevel editor somewhere, but I doubt it.. If ya snoop around... runlevel scripts generally begin with "rc." and sometimes the folder there located in is too... Another thing to look for is any thing to do with "init"

When faced with the whole pcmcia thing in the past on a laptop I usually just issue the ifconfig command manually to configure the ethernet stuff, then I issued the route command to set the defualt gateway. When I got tired of typing it out, I just inserted it into correct Runlevel script that contains the pcmcia initialation stuff, right after the pcmcia gets setup...

Probably unrelated:
(init is the mother of all proccesses. the kernel starts it on bootup. All proccesses in Unix boxen are decendants of init. Init's behavior is controlled by the Runlevel.... runlevel 3 script tells init to spawn the gettys that spawns the login that spawns the bash shell that you use to spawn startx that spawns Gnome that spawns menu programs that spawns the mozilla browser, which renders the HTML code you are reading right now.... etc etc... )
init is the spawning ground of all it's little child proccesses...it's PID is always 1.