LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-26-2015, 07:11 AM   #1
naveenjoshi19
LQ Newbie
 
Registered: Mar 2015
Posts: 3

Rep: Reputation: Disabled
How to change the run level from 6 in Centos 5.4


1 )How to change the run level from 6 to 3 or any run level in Centos 5.4 ?
2)I want to learn more about run level 4 (I know it is used to make changes in the boot time )?

Last edited by naveenjoshi19; 03-26-2015 at 07:12 AM.
 
Old 03-26-2015, 07:20 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 981
Blog Entries: 2

Rep: Reputation: 235Reputation: 235Reputation: 235
If Centos 5.4 has /etc/inittab that's where I'd look first.
 
Old 03-26-2015, 07:02 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,917

Rep: Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429
there is no 6

and 4 is used on Debian os's and NOT on redhat rpm os's

you make the change on old redhat systems the Same way you do on OLD debian systems

edit the old legacy grub.conf or inittab
or
the kernel line during early boot
 
Old 03-26-2015, 07:37 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Quote:
Originally Posted by John VV View Post
there is no 6
This is incorrect, runlevel 6 DOES exist but it is a reboot runlevel. Run init 6 as root and watch ur box reboot.

Quote:
Originally Posted by John VV View Post

edit the old legacy grub.conf or inittab
or
the kernel line during early boot
This is correct, you would edit the /etc/inittab file for permanent runlevel changes. You can edit the boot menu via grub and pass the run level as a boot parameter. Hardcoding this into the grub.conf is not a good idea as your inittab would have a different value and thats where it should be.



Here is a default inittab:

Code:
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault:

Simply change the number after the first colon from 3 to whatever you want. 4 is the same as 3 by default and is a second runlevel used for advanced server configs if you need it.
 
Old 03-27-2015, 12:15 PM   #5
naveenjoshi19
LQ Newbie
 
Registered: Mar 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Smile Thank You for the help to all

Quote:
Originally Posted by naveenjoshi19 View Post
1 )How to change the run level from 6 to 3 or any run level in Centos 5.4 ?
2)I want to learn more about run level 4 (I know it is used to make changes in the boot time )?

Thank You for replying to my answer I got the answer
 
  


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
Change the mapping of Fn key for run level 3 Gavin Harper Slackware 6 06-29-2010 07:52 AM
[SOLVED] How to change permissions of rc.sysinit in run level 1 Andrew Dufresne Linux - Newbie 3 04-06-2010 05:51 AM
What config file do you change to change default run level McPriMa Linux - Newbie 2 08-05-2009 05:45 PM
Last process during run level change Lakki Linux - Software 10 08-04-2009 10:45 AM
change run level siva19185 Linux - Newbie 1 07-10-2008 10:33 AM


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