LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-06-2008, 01:46 PM   #1
Rocket2DMn
LQ Newbie
 
Registered: May 2007
Location: Pennsylvania
Distribution: Ubuntu, CentOS/RHEL, Solaris
Posts: 5

Rep: Reputation: 0
New runlevel(s) in RHEL


Is it possible to create a new runlevel (say, runlevel 7)? If so, how do we go about this? I have added a line to inittab, but was hoping there was a way to have chkconfig or another service related program autocreate the rc*.d directories.
After creating a line in inittab and trying to have a dummy script in init.d be defined to run in runlevel 7, chkconfig would not accept it when I tried to --add.

Thanks in advance.
 
Old 10-06-2008, 02:42 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
What exactly are you trying to achieve by doing this? Perhaps you don't understand how run levels work. Perhaps you need to learn more about SysV which most standard Linux OS's use and invoked from the kernel. If you actually wanted to add another run level, it would probably require you to rewrite the kernel and Redhat's chkconfig utility and probably a slew of other programs. Simply adding a new level in 7 won't do squat.

I would imagine the existing ones are sufficient. If you want to control what program starts in a certain run level, simply customize each with chkconfig.

Last edited by trickykid; 10-06-2008 at 02:43 PM.
 
Old 10-06-2008, 02:51 PM   #3
Rocket2DMn
LQ Newbie
 
Registered: May 2007
Location: Pennsylvania
Distribution: Ubuntu, CentOS/RHEL, Solaris
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you for your response.
I do understand how runlevels work, I just needed to know if it was feasible to add more. I'm afraid I can't explain any more than I have said. You have answered my question though, so thanks again, trickykid.
Cheers.
 
Old 10-06-2008, 05:13 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Perhaps you could use one of the defined levels that isn't used (normally) by RHEL.
I had to do similar for one of the Ubuntu betas when I wound up with a seriously borked system - would only come up in single user mode. Just stole all the init scripts for the normal runlevel, and modified what I needed, then just init'd into it. Enabled me to get to the network up, and rebuilt what I needed to get working again.

O.K. for a "one-off", don't know about long-term usage.
 
  


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
What's the difference between runlevel 2 and runlevel 5 in Debian? davidas Linux - Newbie 2 01-05-2012 01:10 PM
New Install of PCLinuxOS boots into runlevel 3. Should be runlevel 5 MonctonJohn Linux - General 4 02-01-2008 04:38 PM
Go into runlevel 3 after a runlevel 4 crash davidguygc Linux - General 1 08-24-2007 08:23 PM
Soun Mixer absent in Runlevel 3 but present in Runlevel 5 debloxie SUSE / openSUSE 1 01-18-2006 09:15 AM
X does not start in Runlevel 4, but i Runlevel 3 Rabon Linux - General 3 11-18-2003 06:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:57 PM.

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