jump to navigation

Linux Run-Levels August 11, 2005

Posted by Coolguy in Linux.
trackback
  • A runlevel is a software configuration of the system that allows only a selected group of processes to exist
  • Linux has 6 different run levels (or operating modes):
    rc1.d – Single User Mode
    rc2.d – Single User Mode with Networking
    rc3.d – Multi-User Mode – boot up in text mode
    rc4.d – Not yet Defined
    rc5.d – Multi-User Mode – boot up in X Windows
    rc6.d – Shutdown
  • Most of the time when your server boots up it will start in runlevel 3 or 5 depending on what it is set to. This setting can be found in the file /etc/inittab
  • Eg: Line in inittab: id:3:initdefault:
  • NEVER change it to runlevel 6 or else you will set your server to shutdown on bootup
  • In the folder: /etc/rc.d are all the run level folders starting from rc1.d to rc6.d and including init.d
  • If you change directory into /etc/rc.d/rc3.d all the files that start with a capital S are the services that will start at this runlevel.
  • All the files that start with a K are the services that will be killed at that runlevel

More:

http://howtos.linux.com/guides/sag/x2111.shtml

http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlrunlevels.html

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: