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

5. Edit the following attributes manually in the package configuration file:
ExampleDescriptionAttribute
Configuration file parameters
pgsql_pkgThe package name must be unique
in the cluster.
PACKAGE_NAME
node1The name of the node that runs the
package.
NODE_NAME
${SGCONF}/pkg/postgresql/
postgresql.cntl
This is the script to start the service.RUN_SCRIPT
${SGCONF}/pkg/postgresql/
postgresql.cntl
This is the script to halt the service.HALT_SCRIPT
pgsql_monitorThe service name must be unique in
the cluster.
service_name
Control Script Parameters
pgsql_vgThe volume group created for this
package.
VG
/dev/pgsql_vg/lvol1The logical volume created in VT.LV
/pgsql_mountThis is the file system for database.FS
ext2The FS type is Extended 2.FS_TYPE
aa.bb.ccc.dThis is the package subnet.SUBNET
xx.yy.zzz.aaaIt is the relocatable IP address.IP
pgsql_monitorThe service name must be unique in
the cluster.
service_name
${SGCONF}/pkg/postgresql/
toolkit.sh monitor
This is an interface to hapgsql.sh.service_cmd
-r 0The value for service_restart
can be unlimited, none or any
service_restart
positive integer value. If the value is
unlimited, the service is restarted for
infinite number of times. If the value
is none, the service is not restarted.
If the value is a positive integer, the
service is restarted for the specified
number of times before failing. If
service_restart is not
specified, the default value is none.
6. Edit the customer_defined_run_cmds function in the package control script to execute
the toolkit.sh script with the start option.
For example:
function customer_defined_run_cmds
{
# Start the PostgreSQL Database Server.
${SGCONF}/pkg/postgresql/toolkit.sh start
test_return 51
}
7. Edit the customer_defined_halt_cmds function in the package control script to execute
the toolkit.sh script with the stop option.
Using PostgreSQL toolkit 31