Runlevel Utilities - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

Chapter 1. Boot Process, Init...
In general, users operate Red Hat Enterprise Linux at runlevel 3 or runlevel 5 — both full
multi-user modes. Users sometimes customize runlevels 2 and 4 to meet specific needs, since
they are not used.
The default runlevel for the system is listed in
a system, look for the line similar to the following near the top of
id:5:initdefault:
The default runlevel listed in this example is five, as the number after the first colon indicates.
To change it, edit
/etc/inittab
Warning
Be very careful when editing
to become unbootable. If this happens, either use a boot diskette, enter
single-user mode, or enter rescue mode to boot the computer and repair the file.
For more information on single-user and rescue mode, refer to the chapter titled
Basic System Recovery in the Red Hat Enterprise Linux System Administration
Guide.
It is possible to change the default runlevel at boot time by modifying the arguments passed by
the boot loader to the kernel. For information on changing the runlevel at boot time, refer to
Section 8, "Changing Runlevels at Boot

4.2. Runlevel Utilities

One of the best ways to configure runlevels is to use an initscript utility. These tools are
designed to simplify the task of maintaining files in the SysV init directory hierarchy and relieves
system administrators from having to directly manipulate the numerous symbolic links in the
subdirectories of
/etc/rc.d/
Red Hat Enterprise Linux provides three such utilities:
— The
/sbin/chkconfig
maintaining the
/etc/rc.d/init.d/
• /usr/sbin/ntsysv — The ncurses-based /sbin/ntsysv utility provides an interactive
text-based interface, which some find easier to use than
• Services Configuration Tool — The graphical Services Configuration Tool
(
system-config-services
10
/etc/inittab
as root.
/etc/inittab
Time".
.
utility is a simple command line tool for
/sbin/chkconfig
directory hierarchy.
) program is a flexible utility for configuring runlevels.
. To find out the default runlevel for
:
/etc/inittab
. Simple typos can cause the system
.
chkconfig

Advertisement

Table of Contents
loading

Table of Contents