Consultor Eletrônico



Kbase P16520: What do the rc scripts do?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/18/2003
Status: Unverified

GOAL:

What do the rc scripts do?

GOAL:

General overview of rc scripts.

FIX:

During the boot process of a Unix machine, the kernel passes the control of the system to the init process, which initializes the system. The init process uses a configuration file, inittab, usually located in the /etc directory. This file contains entries that list what processes should be executed at each Run-Level.

The first inittab entry covers the initdefault, which determines the initial Run-Level. For instance, an entry such as

init:2:initdefault:

means that the machine boots with an initial Run-Level of 2. Replacing the 2 with a 3 will see the machine boot with Run-Level 3.

Scripts can be added to the relevant rcx.d file in the /etc/rc.d directory, where x is the Run-Level at which the script should run, e.g. a script that should run if the machine boots at Run-Level 3 should be located in /etc/rc.d/rc3.d. When the machine boots with the specific Run-Level, the script will run.

who -r can be used to confirm the Run-Level.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Disclaimer:
Refer to your system documentation for further clarification of inittab file and the rc.d directory before making any changes.