LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Please Explain To Me All About InitLevel (https://www.linuxquestions.org/questions/linux-newbie-8/please-explain-to-me-all-about-initlevel-646663/)

andreas_skw 06-03-2008 08:47 AM

Please Explain To Me All About InitLevel
 
Actually, what is initlevel? Is it have any different with inittab?

please free to visit me!
---------------------------
www.andreaslm.wordpress.com
==========================================================================
"I am a website which contain linux, about aur earth and my life! Thanks"

aus9 06-03-2008 09:03 AM

I think you mean run level and the relavant init scripts defined in /etc/inittab.

However boot up scripts for linux fall to 2 camps...bsd style I think slackware still use and most others use sys v.

the main difference is combined or separate /etc/rc run levels for example runlevel 5 you will find the init scripts in /etc/rc.5/

ranger_nemo 06-03-2008 10:39 AM

The runlevel determines what will be loaded as the system boots up. If you are an administrator and want to work on the system without other users being able to login, you'll boot to one runlevel. If you are a user and want to work solely on a command-line, you'll boot to another runlevel. If you want to boot straight to X, then you'll boot to a third runlevel.

There's a ton of info at Wikipedia...
-- http://en.wikipedia.org/wiki/Runlevel

mrrangerman 06-03-2008 11:59 AM

There are 7 run levels

0: = halt or shutdown
1: = single-user
2-5: = multi-user
6: = reboot

Run levels 0 and 6 are self explaining, If you want to shutdown your system from the CL as root give the command init 0 and the system will shutdown.
Or to reboot the command would be init 6

In Debian the default run level is 2 but all the multi-user run levels are the same or should I say load the same programs, its up to the admin to set up the run level for the user if they want to have specific programs load or not load.

TravisOSF 06-03-2008 04:09 PM

something i don't think was mentioned that is worth mentioning:

inittab is used to control these init scripts, or runlevels. you can further control what is started in fedora and redhat with the chkconfig command. (greatest tool ever imo)

andreas_skw 06-04-2008 04:27 AM

So if i want to shutting down my system, i need to type

root@computername$ init 0

Is that right?


Thanks for answering my questions.

please free to visit me!
---------------------------
www.andreaslm.wordpress.com
==========================================================================
"I am a webblog which contain linux, about our earth and my life! Thanks"

mrrangerman 06-04-2008 04:50 AM

Quote:

andreas_skw

So if i want to shutting down my system, i need to type

root@computername$ init 0

Is that right?
If you are already logged in as root then yes, just type init 0

Your prompt will look like so as root root@computername#

andreas_skw 06-04-2008 06:23 AM

Thanks for the all answer. All information are helpful for me. Thanks

O yeah, i make some note abot dsl in my blog. Please visit and fill my comment, where my mistake so that i can go to right directions. Thanks.

All the best,
Andreas
www.andreaslm.wordpress.com

mrrangerman 06-04-2008 07:03 AM

Quote:

andreas_skw

please free to visit me!

Quote:

andreas_skw
O yeah, i make some note abot dsl in my blog. Please visit and fill my comment, where my mistake so that i can go to right directions. Thanks.
Is the intent of your posting just to get hits on your blog? If that be the case LQ is for learning and helping others with the Linux OS NOT so you can advertise your blog!!


All times are GMT -5. The time now is 05:27 PM.