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

Table 12 Files for creating modular packages
Available in directoryDescriptionFile name
$SGCONF/modules/tkit/pgsqlThis is an attribute definition file, used
to generate a package ASCII template
in modular style of packaging.
pgsq.l
$SGCONF/scripts/tkit/pgsqlThis is the module script. This script is
called by the master control script and
tkit_module.sh
acts as an interface between the
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.
$SGCONF/scripts/tkit/pgsqlThis is the toolkit configuration file
generator script. This script is called
tkit_gen.sh
by the module script when the
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.
Setting up the PostgreSQL server in SG/LX environment
Before configuring the Serviceguard package, you must complete the following configuration tasks
for the application:
1. When the PostgreSQL database is installed, the default PostgreSQL server might be configured
to start during system startup. If the server is already installed and configured, simply stop it
with the following command.
RedHat : "service postgresql stop"
2. Remove or move the following runlevel files. This disables automatic startup when the machine
boots.
Red Hat : /etc/rc.d/init.d/postgresql
SLES: /etc/rc.d/postgresql
Here is a simple example of configuring PostrgreSQL database instance.
1. Create directory where the database is going to be mounted.
2. Change the ownership of the directory to postgres:postgres.
For Example:
$ mkdir /pgsql1
$ chown postgres:postgres /pgsql1
3. After mounting, create the PostgreSQL database using the following command:
"/usr/bin/initdb -D <Directory>"
For Example:
$ /usr/bin/initdb -D /pgsql1
4. Edit the following parameters in the PostgreSQL database configuration file
(postgresql.conf) which is present in the database directory.
Setting up the PostgreSQL server in SG/LX environment 29