Installing and Configuring Apache Toolkit for Serviceguard for Linux

FS_UMOUNT_OPT[0]=""; FS_FSCK_OPT[0]=""
FS_UMOUNT_COUNT=1
FS_MOUNT_RETRY_COUNT=0
CONCURRENT_FSCK_OPERATIONS=1
CONCURRENT_MOUNT_AND_UMOUNT_OPERATIONS=1
IP[0]="15.70.191.6"
SUBNET[0]="15.70.191.0"
SERVICE_NAME[0]="apache1_service"
SERVICE_CMD[0]="/usr/local/cmcluster/pkg/apache1/toolkit.sh
monitor"
SERVICE_RESTART[0]=""
b. Add the following line to the customer_defined_run_cmds function of the control
script to start the Apache package:
function customer_defined_run_cmds
{
/usr/local/cmcluster/pkg/apache1/toolkit.sh start
test_return 51
c. Add the following line to the customer_defined_halt_cmds function of the control
script to halt the package:
function customer_defined_halt_cmds
{
/usr/local/cmcluster/pkg/apache1/toolkit.sh stop
test_return 52
}
NOTE: You must select a package IP address that is not used by any other application.
Serviceguard cannot start a package if the IP address corresponding to the package is already in
use.
4. Edit the Apache toolkit configuration file.
Edit the apache toolkit configuration file, hahttp.conf. In this example, we have considered
/mnt/vgtry1/apache as the server root directory. It is also assumed that the pid file is placed in
the package directory. Edit the hahttp.conf file.
a. Set the path for httpd.conf file which is the apache configuration file
For example:
HTTPD_CONFIG_FILE="/mnt/vgtry1/apache/httpd.conf"
In the Red Hat environment, set the directive ServerRoot and DocumentRoot
directive in the hahttp.conf file,
b. This variable holds the Process ID file path of the Apache server
instance.
PID_FILE="/usr/local/cmcluster/pkg/apache1/httpd_s1.pid"
c Select one of the following options based on your requirement. For example, on the
basis of which criterion you want the package to fail over, such as the absence of the
Parent process only, or any one of the processes or all the processes.
(
FAIL_CRITERIA="Parent_Process_Only"
FAIL_CRITERIA="Each_Process"
FAIL_CRITERIA="All_Processes" )
FAIL_CRITERIA="Parent_Process_Only"