Runlevel(s)


 
Thread Tools Search this Thread
Operating Systems Linux Runlevel(s)
# 1  
Old 09-14-2006
Error Runlevel(s)

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

I need to know.
# 2  
Old 09-14-2006
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
# 3  
Old 09-14-2006
Computer 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. Smilie Smilie Smilie

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! Smilie
You type init (number) to change runlevel?
# 4  
Old 09-15-2006
Quote:
Originally Posted by Irish Jimmy
Yes, it did help. Thanks! Smilie
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 Smilie

Carl
# 5  
Old 09-16-2006
It's not working...
How do I change the runlevel?
# 6  
Old 09-17-2006
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..."

Smilie

Carl
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Programming

Problem in determining runlevel through a C program

Hi, I am trying with the following code to retrieve the runlevel of my Linux Ubuntu 8.04 system by reading the "utmp" database. But I am getting blank output. May I know what correction I should do inorder to make this program to work? #include <stdio.h> #include <stdlib.h> #include... (1 Reply)
Discussion started by: royalibrahim
1 Replies

2. Solaris

runlevel issue

hi all i am using solaris 10 with run level 3.(Graphical Interface). I am a beginner to solaris so that i just want to do some R&D with my machine. I decided to boot into the command line interface, so i go througth the internet and find that the following command should be given to boot into the... (8 Replies)
Discussion started by: kingston
8 Replies

3. Red Hat

Running a script in runlevel 1

hi all i have to run a script in run level 1 automatically i.e when i give init 1 from runlevel 3 that script should run after entering into runlevel 1. where can i put that script so that it will run as i said above..??? something similar to rc.local but this will run in runlevel 3(... (1 Reply)
Discussion started by: sagar_md
1 Replies

4. SuSE

New runlevel service

Ok, I am attempting to add a new program to startup during the runlevel 3. I am using Suse 10. I made a script lets call it foostart and placed it in /etc/init.d. It has 777 permissions on the script. I then created a link ln -s /etc/init.d/foostart /etc/init.d/rc3.d/S99foostart But during... (9 Replies)
Discussion started by: benefactr
9 Replies

5. UNIX for Advanced & Expert Users

Multiple runlevel options at Bootup

Is it possible to give multiple runlevel options during boot up.. When the Welcome screen appears, i want to give multiple runlevel options.. So the user can boot into any desired runlevel he wants.. Found this kinda interesting.. Any hints and solutions please? (2 Replies)
Discussion started by: srikumar_cs
2 Replies

6. Linux

runlevel from cmdline or lilo?

Hi, Is it possible to specify runlevel from bootloader command line? I would like to override settings from /etc/inittab without changing it. Thanks (2 Replies)
Discussion started by: odys
2 Replies

7. UNIX for Dummies Questions & Answers

Runlevel in Freebsd?

Hello, Is there any runlevels in freebsd? Like in linux or solaris? Thanks -I (2 Replies)
Discussion started by: Insomniac
2 Replies
Login or Register to Ask a Question