HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)

1. Configure volume groups for each Apache instance.
To create volume groups applicable for both shared and local configuration:
a. Create another volume group, such as vgtry2.
b. Create a logical volume lvol in the volume group that you just created.
c. Create a file system on this logical volume and mount it.
For example: /mnt/vgtry2/apache
d. Copy all the files from the server root directory to /mnt/vgtry2/apache.
2. Create another package directory.
For example, consider $SGCONF/pkg/apache2 as the package directory of the second
apache instance.
3. Edit the package configuration file pkg.conf. Table 5 (page 15) lists all the variables that
you can edit.
Table 5 List of variables that you can edit
Column HeadVariable
APACHE2PACKAGE_NAME
$SGCONF/pkg/apache2/pkg.cntlRUN_SCRIPT
$SGCONF/pkg/apache2/pkg.cntlHALT_SCRIPT
apache2_serviceservice_name
4. Specify the following parameters to integrate multiple instances of the Apache server.
ExampleVariable
/dev/vgtry2VG[0]
/dev/vgtry2/lvolLV[0]
/mnt/vgtry2/apacheFS[0]
aa.bb.ccc.dIP[0]
xx.yy.zzz.aSUBNET[0]
apache2_serviceSERVICE_NAME[0]
$SGCONF/pkg/apache2/toolkit.sh monitorSERVICE_CMD[0]
To execute the toolkit.sh script with the start option, edit the
customer_defined_run_cmds function in the package control script as follows:
function customer_defined_run_cmds
{
$SGCONF/pkg/apache2/toolkit.sh start
test_return 51
}
To execute the toolkit.sh script with the start option, edit the
customer_defined_halt_cmds function in the package control script as follows:
function customer_defined_halt_cmds
{
$SGCONF/pkg/apache2/toolkit.sh stop
test_return 52
}
5. To edit the Apache toolkit configuration file hahttp.conf, run:
HTTPD_CONFIG_FILE="/mnt/vgtry2/apache/httpd.conf"
Using SG Apache toolkit 15