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

test_return 51
}
c. To halt the Apache toolkit package, add the following line to the
customer_defined_halt_cmds function of the control script:
function customer_defined_halt_cmds
{
$SGCONF/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 hahttp.conf.
5. Copy the package directory to all the other package nodes.
For example: Change to the parent directory of the package directory and enter the following
command:
# rcp -r p $SGCONF/pkg/apache1 node2:$PWD/
6. To apply the package configuration, run:
# cmapplyconf -P pkg.conf
7. Start the package using the cmrunpkg command.
# cmrunpkg APACHE1
8. To view the package details, run:
# cmviewcl
NOTE:
To enable the AUTORUN parameter, run:
# cmmodpkg e APACHE1
To enable package switching, run:
# cmmodpkg e -n node-1, -n node-2 ... -n node-n APACHE1
Once the package starts, it starts an Apache server instance comprising of the Apache daemon,
httpd, which spawns a number of sub-processes to handle numerous http requests. It also
launches the Apache monitor script.
Configuring multiple instances
This section describes how to integrate multiple Apache web server instances using the Apache
web server toolkit. Before integrating the instances, you must create an instance of the Apache
server.
After you create an instance of the Apache server, you must create another instance using the
following procedure. All instances of the Apache server must be configured in the same way.
For easy comprehension, the following naming conventions are used in this section:
The Serviceguard Apache toolkit package is named as APACHE2. The corresponding service
name is apache2_service.
The Apache toolkit package is configured to listen to a relocatable IP address. Ensure that the
IP address is not used by any other application.
To create multiple Apache toolkit packages for multiple Apache instances:
14 Apache Toolkit