HP-UX Containers (SRP) A.03.01 Administrator's Guide
103
Service Description
system rules to allow the container to access the specified Apache directories in
global view. The srp command adds entries to the container rules file
(/etc/cmpt/container_name.rules) that authorizes access to the directories
specified in exec_path, data_path, and java_path variables. The srp
command also adds an include statement to add the rules from the
/opt/hpsrp/etc/cmpt/tomcat.srp_incl file. As delivered by HP, this file is
empty. You can edit this file to contain compartment rules to be applied when
configuring the cmpt service with the tomcat template.
ipfilter
The ipfilter service for the tomcat template adds rules to allow inbound
requests to the specified ports used by the Tomcat server to pass. You can also
specify additional inbound destination TCP port numbers for IPFilter pass rules
provision
The provision service executes the script
/opt/hpsrp/bin/util/tomcat_setup to provision (deploy) a tomcat
service in the container.
By default, the tasks executed by the /opt/hpsrp/bin/util/tomcat_setup
script include:
• Creating conf, logs, temp, webapps, and work subdirectories
below the container Tomcat home directory.
• Creating a container-specific server.xml file with container-specific
configuration data, such as setting tomcat http, ajp ports.
• Creating container-specific initialization scripts and startup file to start
Tomcat with the container-specific configuration files when the
container startup script is executed. The setup script:
o Modifies the initialization scripts to start/stop Tomcat application
as the Tomcat user. Also, exported variables that define Tomcat’s
CATALINA_HOME, CATALINA_BASE and JAVA_HOME directory.
o Creates the container-specific startup configuration file,
/var/hpsrp/container_name/etc/rc.config.d/hpws22
_tomcatconf, which specifies the container-specific tomcat home
directory.
o Adds the startup and shutdown script hpws22_tomcat to the
container-specific init.d directory,
/var/hpsrp/container_name/sbin/init.d. This file is linked to
the
/var/hpsrp/container_name/sbin/rc3.d/S823hpws22_tomcat
and
/var/hpsrp/container_name/sbin/rc3.d/K177hpws22_tomcat
files.
Completing the Configuration
After you apply the tomcat cmpt service and the default tomcat provisioning
script, you can start the container, and have a fully-functional HP-UX Tomcat-based
servlet engine in the container. You can further customize the servlet engine as
needed by editing the container-specific Tomcat configuration files
(/var/hpsrp/container_name/etc/rc.config.d/hpws22_tomcatconf
and the container-specific server.xml, located in the conf subdirectory below the
data_path).