The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Multiple runlevel options at Bootup srikumar_cs UNIX for Advanced & Expert Users 2 04-03-2007 11:21 PM
runlevel from cmdline or lilo? odys Linux 2 02-06-2006 01:22 PM
Runlevel in Freebsd? Insomniac UNIX for Dummies Questions & Answers 2 03-01-2003 06:35 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 09-14-2006
Registered User
 

Join Date: Aug 2006
Posts: 33
Exclamation Runlevel(s)

Can some exsplain to to me what runlevel 1-9 do?

I need to know.
Reply With Quote
Forum Sponsor
  #2  
Old 09-14-2006
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
I dunno Jimmy, can you use Google to find the answers to some of the easier questions?

The problem is that runlevels can be different depending on which unix you're looking at. Solaris for example. Run level 5 is a system power down. On Linux boxes, run level 5 brings you into the windowing system.

Some runlevels are consistent even if they're not really official standards. Run level 2 and 3 for example.

Plus some systems use rcn.d directories where others use rc scripts.

There are other run levels too.

S - Single user mode
0 - System Shutdown
1 - Single user mode
2 - Start most services
3 - Multi-user mode startup (apache, nfs server and snmp start here on solaris)
4 - ?
5 - X-Windows on linux, Powerdown on Sun
6 - ?
7 - ?
8 - ?
9 - ?

If you have a directory and have a specific need to start something extra, like a web server but you don't want it starting in 3, then you can put Apache in run level 4 for example, but not on Sun.

See in Linux, each rc directory stands on its own. init throws you right to the /etc/rc3.d directory. So all your startup scripts for run level 3 need to be in /etc/rc3.d. However on Sun systems, /etc/rc2.d is processed and then /etc/rc3.d and potentially /etc/rc4.d if you had something in there.

Did that help?

Carl
Reply With Quote
  #3  
Old 09-14-2006
Registered User
 

Join Date: Aug 2006
Posts: 33
Talking Helped

Quote:
Originally Posted by BOFH
I dunno Jimmy, can you use Google to find the answers to some of the easier questions?

The problem is that runlevels can be different depending on which unix you're looking at. Solaris for example. Run level 5 is a system power down. On Linux boxes, run level 5 brings you into the windowing system.

Some runlevels are consistent even if they're not really official standards. Run level 2 and 3 for example.

Plus some systems use rcn.d directories where others use rc scripts.

There are other run levels too.

S - Single user mode
0 - System Shutdown
1 - Single user mode
2 - Start most services
3 - Multi-user mode startup (apache, nfs server and snmp start here on solaris)
4 - ?
5 - X-Windows on linux, Powerdown on Sun
6 - ?
7 - ?
8 - ?
9 - ?

If you have a directory and have a specific need to start something extra, like a web server but you don't want it starting in 3, then you can put Apache in run level 4 for example, but not on Sun.

See in Linux, each rc directory stands on its own. init throws you right to the /etc/rc3.d directory. So all your startup scripts for run level 3 need to be in /etc/rc3.d. However on Sun systems, /etc/rc2.d is processed and then /etc/rc3.d and potentially /etc/rc4.d if you had something in there.

Did that help?

Carl
Yes, it did help. Thanks!
You type init (number) to change runlevel?
Reply With Quote
  #4  
Old 09-15-2006
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
Quote:
Originally Posted by Irish Jimmy
Yes, it did help. Thanks!
You type init (number) to change runlevel?
Yep. I think I mostly use init 5 on my sun boxes. Oh and init 6 is reboot

Carl
Reply With Quote
  #5  
Old 09-15-2006
Registered User
 

Join Date: Aug 2006
Posts: 33
It's not working...
How do I change the runlevel?
Reply With Quote
  #6  
Old 09-17-2006
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
Quote:
Originally Posted by Irish Jimmy
It's not working...
How do I change the runlevel?
You're really going to have to start being complete in your questions and responses. Let us know what you're trying to do and, if something we suggest isn't working for you, post what you did and the results. It's hard to troubleshoot when you just say "It's not working..."



Carl
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0