LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 06: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 06:12 AM.
 
Old 03-26-2015, 06:20 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

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

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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, 06: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, 11:15 AM   #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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 AM.

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