![](/images/new-backgrounds/1270622/270622213x1.webp)
packages fail. This
The following information provides the steps for configuring the toolkit and running the package. This includes configuring the Apache toolkit user configuration file.
NOTE: Before working on the toolkit configuration, the package directory (for example, /etc/ cmcluster/pkg/http_pkg1) must be created and all toolkit scripts copied to the package directory.
1.Edit the Apache Toolkit user configuration file.
In the package directory, edit the user configuration file ( hahttp.conf) as indicated by the comments in that file.
For example:
SERVER_ROOT="/shared/apache1/httpd" PID_FILE="/var/run/httpd1.pid" SSL="yes"
MAINTENANCE_FLAG="yes"
2.Copy the entire package directory at the same path on all nodes configured for the package. For this example, each package node must have the following files in the package directory:
http_pkg.conf | #Package configuration file |
http_pkg.cntl | #Package control file |
hahttp.conf | #Apache toolkit user configuration file |
hahttp.mon | #Apache toolkit monitor program |
hahttp.sh | #Apache toolkit main script |
toolkit.sh | #Interface file between the package |
| #control file and the toolkit |
3.Apply the Serviceguard package configuration using the command cmapplyconf
Use the same procedures to create multiple Apache instances for Serviceguard packages that will be running on the cluster.
Creating Serviceguard package using Modular method.
Follow the steps below to create Serviceguard package using Modular method:
1.Create a directory for the package.
#mkdir /etc/cmcluster/pkg/apache_pkg/
2.Copy the toolkit template and script files from apache directory.
#cd /etc/cmcluster/pkg/apache_pkg/ #cp /opt/cmcluster/toolkit/apache/* ./
3.Create a configuration file (pkg.conf) as follows.
#cmmakepkg
4.Edit the package configuration file.
NOTE: Apache toolkit configuration parameters in the package configuration file have been prefixed by ecmt/apache/apache when used in Serviceguard A.11.19.00 or later.
For Example:
/etc/cmcluster/pkg/apache_pkg/pkg.conf