The HP-UX Parallel rc Framework

start scr
ipt is represented by the name S019setboot. Within a run level, both start and kill scripts are
executed in ascending alphabetical order. The entire name of the script is used for ordering.
During the transition from a lower (existing) run level to a higher (destination) run level, all start scripts
in the intermediate run levels in ascending order are executed culminating in the execution of the start
scripts in the destination run level. For instance, while moving from run level 1 to run level 3, all start
scripts in run level 2 are executed followed by start scripts in run level 3.
During the transition from a higher (existing) run level to a lower (destination) run level, all kill scripts
in the intermediate run levels in descending order are executed culminating in the execution of kill
scripts in the destination run level. For instance, while moving from run level 3 to run level 1, all kill
scripts in run level 2 are executed followed by kill scripts in run level 1.
The traditional rc script sequencer uses the alphabetical ordering of script names to ensure accuracy.
It is left to the developer of the script to assign an appropriate sequence number for the script to run
accurately. For instance, if script Y has a dependency on script X, then the developer of script Y must
ensure that script Y has a greater sequence number than script X.
For more information on how the traditional rc script sequencer works, see the rc(1M) manpage.
Installing and Enabling the Parallel rc Execution
Infrastructure
The Parallel rc Framework is available as a separately installable bundle RCEnhancement in HP-UX
11i v3 Update 6. This bundle is not installed by default. The bundle contains the product PARLL-RC-
ENH which is the Parallel rc Framework. The Parallel rc Framework can be installed even if the system
is not upgraded to Update 6 of HP-UX 11i v3. The only prerequisite is that B.11.31.1003.02 or later
version of the RCEnhancement product is installed on the system.
For example, the product can be installed using the command:
swinstall –s /tmp/RCEnhancemnet.depot RCEnhancement
Once the bundle is installed, the Parallel rc Execution Infrastructure can be turned on and off using the
command line interface:
rcutil –e on
rcutil –e off
By default, the Parallel rc Execution Infrastructure is turned off. The current state of the framework can
be determined using the following command:
rcutil –q
The Working of the Parallel rc Framework
The Parallel rc Framework allows rc scripts to be executed in parallel. Using this framework the time
required to transition between run levels can be reduced. However, not all scripts can be executed in
parallel. Most scripts depend on some service or state enabled by other scripts. With the traditional rc
script sequencer, dependencies among scripts are taken care of by the alphabetical ordering of script
names. With the Parallel rc Framework, developers must explicitly specify the dependencies among
scripts.
Note: The RCEnhancement bundle comes with a set of dependencies for rc scripts delivered by HP in
the Data Centre Operating Environment (DCOE).
Dependencies
A script is considered to be dependent on another script when it requires services or operations set up
by another script. For example, script
b
is considered to be dependent on script
a
if script
b
requires