HP-UX Secure Resource Partitions (SRP) A.02.00 Administrator's Guide
10 Starting and Stopping SRP Compartments
This chapter describes how to start and stop SRP compartments. For complete syntax information,
see srp(1m).
This chapter addresses the following topics:
• “SRP Startup and Shutdown Processing” (page 65)
• “Starting an SRP Compartment” (page 66)
• “Stopping an SRP Compartment” (page 66)
SRP Startup and Shutdown Processing
By default, all SRP compartments are automatically started at system startup time and are
automatically stopped at system shutdown time. Each compartment home directory contains
an sbin subdirectory (/var/hpsrp/compartment_name/sbin) that contains a subtree similar
to the system /sbin subtree. Each compartment sbin directory contains an init.d directory
and an rcn.d subdirectory tree with the subdirectories rc0.d, rc1.d, rc2.d, rc3.d, and
rc4.d.
The SRP product also includes the /opt/hprsp/bin/util/srp_rc script. This is a sequencer
script that is executed at system startup and shutdown time and is similar to the /sbin/rc
utility, with the following differences:
• The /opt/hprsp/bin/util/srp_rc script first restarts itself in the target compartment
by executing the following command:
privrun -c compartment_name /opt/hprsp/bin/util/srp_rc
This causes all the processes and scripts executed by srp_rc to run in the target
compartment.
• The srp_rc script executes the files in the
/var/hpsrp/compartment_name/sbin/init.d/rcn.d directories (instead of the files
in the /sbin/init.d/rcn.d directories).
The /opt/hprsp/bin/util/srp_rc script executes the scripts in the rcn.d directories
in numeric order. When the system starts up, SRP traverses these directories in ascending
order and executes scripts in these directories. When the system shuts down, SRP traverses
these directories in descending order and executes scripts in these directories.
SRP Startup and Shutdown Processing 65