HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)
Table 13 List of attributes that you can edit (continued)
ExampleDescriptionAttribute
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. To execute the toolkit.sh script with the start option, edit the
customer_defined_run_cmds function in the package control script as follows:
For example:
function customer_defined_run_cmds
{
# Start the PostgreSQL Database Server.
$SGCONF/pkg/postgresql/toolkit.sh start
test_return 51
}
7. To execute the toolkit.sh script with the start option, edit the
customer_defined_halt_cmds function in the package control script as follows:
For example:
function customer_defined_halt_cmds
{
# Stop the PostgreSQL Database Server.
$SGCONF/pkg/postgresql/toolkit.sh stop
test_return 51
}
8. Edit the PostgreSQL the toolkit configuration file hapgsql.conf.
9. Copy the package directory to the other nodes in the cluster.
For example, change to the parent directory of the package directory and enter the following
command:
# rcp -r –p $SGCONF/pkg/postgresql node2:$PWD/
10. Validate the configuration using the cmcheckconf command:
# cmcheckconf -P pgsql_pkg.conf
11. Add the package to the Serviceguard environment using the cmapplyconf command, if the
cmcheckconf command does not report any errors:
# cmapplyconf -P pgsql_pkg.conf
12. Enable package switching for the PostgreSQL toolkit package using:
# cmmodpkg -e -n node1 -n node2 pgsql_pkg
# cmmodpkg -e pgsql_pkg
13. Start the package using the cmrunpkg command.
# cmrunpkg pgsql_pkg
Configuring modular PostgreSQL toolkit packages
To configure modular PostgreSQL toolkit packages:
32 PostgreSQL Toolkit