HP Serviceguard Linux Contributed Toolkit Suite A.04.02.01 User Guide (696979-001, June 2012)

# cd ${SGCONF}/pkg/apache1
c. To create the package configuration file and the package control script, run the following
commands:
To create the package configuration file:
# cmmakepkg -p pkg.conf
To create the package control script:
# cmmakepkg -s pkg.cntl
2. Edit the package configuration file.
Enter the following command to open the package configuration file:
# vi ${SGCONF}/pkg/apache1/pkg.conf
You can edit the following variables in the package configuration file.
ExampleVariable
APACHE1PACKAGE_NAME
FAILOVERPACKAGE_TYPE
CONFIGURED_NODEFAILOVER_POLICY
MANUALFAILBACK_POLICY
node1NODE_NAME
node2NODE_NAME
YESAUTO_RUN
NONODE_FAIL_FAST_ENABLED
NOTE: The package configuration file contains variables that characterize the package.
The package name and the service name mentioned must be unique.
Initialize the RUN_SCRIPT and the HALT_SCRIPT in the package control script. You can
edit these variables based the requirement of your environment.
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.
12 Apache Toolkit