HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)
Initialize the RUN_SCRIPT and the HALT_SCRIPT in the package control script. Table
4 (page 13) lists all the variables that you can edit based on the requirement of your
environment.
Table 4 List of variables that you can edit
ExampleVariable
$SGCONF/pkg/apache1/pkg.cntlRUN_SCRIPT
NO_TIMEOUTRUN_SCRIPT_TIMEOUT
$SGCONF/pkg/apache1/pkg.cntlHALT_SCRIPT
NO_TIMEOUTHALT_SCRIPT_TIMEOUT
NO_PRIORITYPRIORITY
0SUCCESSOR_HALT_TIMEOUT
apache1_serviceSERVICE_NAME
NOSERVICE_FAIL_FAST_ENABLED
300SERVICE_HALT_TIMEOUT
3. Edit the package control script (pkg.cntl) to customize it to the environment.
NOTE: HP recommends that you configure the server root directory and the document root
directory on a shared storage.
In the following example, the volume group /dev/vgtry1 is used as the server root directory
and the document root directory.
a. Mount the logical volume lvol on vgtry1 under the mount point /mnt/vgtry1/
apache. Use an IP address that is not used by any other application. Edit the following
variables in the package control script.
GFS="NO"
DATA_REP="none"
RAIDSTART="raidstart -c ${RAIDTAB}"
RAIDSTOP="raidstop -c ${RAIDTAB}"
VGCHANGE="vgchange -a y"
VG[0]="/dev/vgtry1"
LV[0]="/dev/vgtry1/lvol"; FS[0]="/mnt/vgtry1/apache";
FS_TYPE[0]="ext2"; FS_MOUNT_OPT[0]="-o rw"
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]="aa.bb.ccc.d"
SUBNET[0]="xx.yy.zzz.a"
SERVICE_NAME[0]="apache1_service"
SERVICE_CMD[0]="$SGCONF/pkg/apache1/toolkit.sh
monitor"
SERVICE_RESTART[0]=""
b. To start the Apache toolkit package, add the following line to the
customer_defined_run_cmds function of the control script:
function customer_defined_run_cmds
{
$SGCONF/pkg/apache1/toolkit.sh start
Using SG Apache toolkit 13