HP-UX Secure Resource Partitions (SRP) A.02.00 Administrator's Guide
NOTE: Note that the numeric portion of the subdirectory name does not correspond to the
system run level at which the scripts are executed. The system run level at which the scripts
are executed is determined by the run level at which the SRP master script, /sbin/init.d/
srp, runs (run level 3 when the system starts up and at run level 2 when the system shuts
down).
At system startup or shutdown time, the SRP scripts are executed as follows:
• The /sbin/init.d/srp file is linked to the following files:
/sbin/rc3.d/S999srp
/sbin/rc2.d/K001srp
The /sbin/rc3.d/S999srp file is the last or one of the last startup scripts executed when
the system transitions from run level 2 to run level 3 (typically at system startup). The
/sbin/rc2.d/K001srp file is the first or one of the first shutdown scripts executed when
the system transitions from run level 3 to run level 2 (typically at system shutdown). The
SRP initialization and shutdown scripts are processed as follows:
• The /sbin/init.d/srp script reads the /etc/rc.config.d/srpconf file to determine
which SRP compartments have the autostart feature enabled. By default, SRP configures
the autostart feature for all SRP compartments.
• The /sbin/init.d/srp script executes the /opt/hprsp/bin/util/srp_rc script for
each compartment that has the autostart feature enabled.
• 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.
The files in the /var/hpsrp/compartment_name/sbin/rcn.d directories are also executed
when the srp -start or the srp -stop command is executed for the compartment.
Starting an SRP Compartment
Use the following command to start an SRP compartment:
srp -sta[rt] compartment_name
Where:
compartment_name
Specifies the name of an SRP compartment.
The srp -start command starts an SRP compartment by executing the /sbin/init.d/srp
script in the compartment with the start argument.
Stopping an SRP Compartment
Use the following command to stop an SRP compartment:
srp -sto[p] compartment_name
Where:
compartment_name
Specifies the name of an SRP compartment.
The srp -stop command shuts down an SRP compartment by executing the /sbin/init.d/
srp script in the compartment with the stop argument. This script executes the shutdown scripts
in the /var/hpsrp/compartment_name/rcn.d directories (files with names that start with
K). For more information about SRP startup and shutdown scripts, see information about
configuration data created by the init service in “Configuration Data” (page 41).
66 Starting and Stopping SRP Compartments