HP-UX Secure Resource Partitions (SRP) A.02.01 Administrator's Guide

71
The /sbin/rc3.d/S999srp file is the last or one of the last startup scripts executed when
the 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.
The /sbin/init.d/srp script executes the /opt/hpsrp/bin/util/srp_rc script for
each compartment that has the autostart feature enabled.
The /opt/hpsrp/bin/util/srp_rc script executes the scripts in the rcN.d directories in
alphabetical 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.
12.2 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.
12.3 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 11.1.3.2 Configuration Data.