LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-23-2012, 12:52 PM   #1
gerdy
Member
 
Registered: May 2012
Posts: 69

Rep: Reputation: Disabled
Run Levels.


So I'm reading a book about linux to try and learn more about it. I got to a section bout run levels but it didn't relly explain what they do/are. it just seemed like it ws just for when you wanted that process to run. what happens if you change the run levels? The book explained it poorly and I would appreciate some clarification.
 
Old 06-23-2012, 01:00 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
run levels are (at least from my interpretation), simply put, ways of configuring what services are running on the machine, usually the higher the 'runlevel' the more that is configured to run, different distributions handle them differently, but most if not all have runlevel 0 as shutdown, runlevel 6 as reboot and 1/6 as single user mode (only a single root shell and perhaps bare minimum graphics drivers) everything in between is up to the distribution, but they can be customized using runlevel editors so you could have one run a webserver, one a desktop etc..
sorry to seem confusing, but run-levels can be confusing
 
Old 06-23-2012, 01:07 PM   #3
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
that makes a little more sense I guess. the run levels are kind of like a precedence setter. it's kind of like "this service is more important that that service" thus the higher run level? Do the run levels boot up in order?
 
Old 06-23-2012, 01:36 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
no, they don't, they are more of a preconfigured set of services that run when invoked, you COULD arbitrarily set anything to run in any runlevel, though as i mentioned, different distributions have their own default sets services on each runlevel, but you could have say runlevel 2 have a webserver and runlevel 3 have your desktop, etc..
 
Old 06-23-2012, 01:50 PM   #5
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
ok. got that. now I think my book mentioned they boot consecutively, is this true? or does it differ between distros?
 
Old 06-23-2012, 02:01 PM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
they do not boot consecutively otherwise your system wouldn't boot at all since runlevel 0 is halt as a standard for all distributions, if they were booted consecutively the first runlevel that would be reached would be to halt the system, you chose the runlevel that is booted, often times in /etc/inittab, but some distributions have different ways of setting this.
 
1 members found this post helpful.
Old 06-23-2012, 02:35 PM   #7
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
Oh, ok. thanks for clearing that up.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
run levels llogic98 Linux - Newbie 6 04-27-2012 04:50 PM
run levels maintenance drManhattan Red Hat 5 05-05-2011 04:43 PM
trying to fix xwindows or just run command line... changing run levels dave247 Debian 2 11-18-2008 06:11 PM
Booting to different run levels ahh_username_taken Slackware 6 09-01-2008 10:24 AM
Changing Run Levels unclebyron Linux - General 1 01-28-2002 04:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:37 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