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

# rpm ivh
serviceguard-postgresql-toolkit-<release_version>.redhat.noarch.rpm
The PostgreSQL toolkit directory is installed in the following directory:
${SGCONF}/postgresqltoolkit
NOTE: To verify the PostgreSQL toolkit installation, you can run the # rpm qa | grep
postgresql-toolkit command, or you can verify whether all the toolkit scripts are present in
the toolkit installation directory ${SGCONF}/postgresqltoolkit.
Files and directories created for PostgreSQL toolkit after installation
The following table describes the scripts installed as part of the PostgreSQL installation.
Table 5 Files created after PostgreSQL toolkit is installed
Available in directoryDescriptionFile name
Red Hat: ${SGCONF}/
postgresqltoolkit
This is the toolkit configuration file. It
contains a list of pre-defined variables
that must be set to run the highly
available PostgreSQL toolkit package.
hapgsql.conf
This is the toolkit main script that
contains internal functions that start or
stop an PostgreSQL instance.
hapgsql.sh
This monitors the health of the running
PostgreSQL server application.
hapgsql.mon
This is interface between the package
control script and the PostgreSQL
toolkit main shell script hapgsql.sh.
toolkit.sh
Table 6 Files for creating modular packages
Available in directoryDescriptionFile name
Red Hat: ${SGCONF}/modules/
tkit/pgsql
This is an attribute definition file, used
to generate a package ASCII template
in modular style of packaging.
pgsq.l
Red Hat: ${SGCONF}/scripts/
tkit/pgsql
This is the module script. This script is
called by the master control script and
acts as an interface between the
tkit_module.sh
tkit_module.sh master control
script and the toolkit interface script
(toolkit.sh). It is also responsible
for calling the toolkit configuration file
generator script.
NOTE: This file is used only for
creating modular packages.
Red Hat: ${SGCONF}/scripts/
tkit/pgsql
This is the toolkit configuration file
generator script. This script is called
by the module script when the
tkit_gen.sh
package configuration is applied
using cmapplyconf to generate the
user configuration file in the package
directory, TKIT_DIR.
NOTE: This file is used only for
creating modular packages.
28 PostgreSQL Toolkit