Installing and Configuring Apache Toolkit for Serviceguard for Linux

If the AUTORUN parameter has disabled as the value, you must change it to enable. Run the
following command to enable the AUTORUN parameter:
For example:
#cmmodpkg e APACHE2
If switching is disabled for any node, enable it using the cmmodpkg command:
For example:
#cmmodpkg e n <node_name> APACHE2
On completing this procedure, you would have created multiple Apache packages for multiple
Apache instances that will be running on the cluster.
Maintenance Mode
In any environment, you may need to bring down the systems for maintenance. Similarly, there may
be situations where you need to bring down the Apache Web Server for maintenance. For example,
you might have to change configuration information without migrating the instance from one node to
another node.
Following is the naming convention in this procedure:
Package name is APACHE1
Package directory is /usr/local/cmcluster/pkg/apache1
To bring down the Apache Web Server for maintenance, complete the following steps.
NOTE: The maintenance mode feature is enabled only when the configuration variable
MAINTENANCE_FLAG is set to yes in the apache toolkit configuration file
/usr/local/cmcluster/pkg/apache1/hahttp.conf.
1. Enter the following command to disable the failover of the package:
#cmmodpkg -d APACHE1
2. Pause the monitor script and create an empty file,
/usr/local/cmcluster/pkg/apache1/apache.debug, as shown below:
#touch /usr/local/cmcluster/pkg/apache1/apache.debug
The toolkit monitor script which continuously monitors the Apache daemons will now stop
monitoring these daemons. The following message is logged in the package control script:
Apache toolkit pausing monitoring and entering maintenance mode
If required, enter the following command to stop the Apache application:
#/usr/local/cmcluster/pkg/apache1/toolkit.sh stop
3. Perform the maintenance actions. For example, you can change the configuration of the
Apache instance, or make changes to the toolkit configuration file, hahttp.conf to start the
Apache web server application in secure mode. If you make changes to this file, you must
distribute the new file to all the nodes in the cluster.
4. Start the apache instance again if you stopped it by using the following command:
#/usr/local/cmcluster/pkg/apache1/toolkit.sh start