Fedora/Redhat runlevel
January 17, 2010 00:15:47
A runlevel is used to group the daemons (services) to start. For the Fedora/Redhat based Linux systems, the primary runlevels are:
The typical workstation runs in runlevel 5. Servers without X-server runs in runlevel 3.
To determine what runlevel you are using:
To determine what runlevel your system will boot with:
To switch runlevels (replace
When you switch runlevel, be sure that you are at a text console so that you don't accidentally kill your session when X-server is killed.
- runlevel 1: Single-User Mode
- runlevel 2: Multi-User Mode
- runlevel 3: Multi-User Mode with Networking
- runlevel 5: X11 (runlevel 3 + X Window System)
The typical workstation runs in runlevel 5. Servers without X-server runs in runlevel 3.
To determine what runlevel you are using:
# /sbin/runlevel
To determine what runlevel your system will boot with:
# cat /etc/inittab | grep :initdefault: id:5:initdefault:
To switch runlevels (replace
RUNLEVEL with appropriate number):
# /sbin/init RUNLEVEL
When you switch runlevel, be sure that you are at a text console so that you don't accidentally kill your session when X-server is killed.