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

ExampleDescriptionAttribute
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.
function customer_defined_run_cmds
{${SGCONF}/pkg/Sendmail/toolkit.sh start
test_return 51
}
function customer_defined_halt_cmds
{
${SGCONF}/pkg/Sendmail/toolkit.sh stop
test_return 52
}
6. Edit the sendmail the toolkit configuration file hasendmail.conf.
7. 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/Sendmail node2:$PWD/
8. Validate the configuration using the cmcheckconf command:
# cmcheckconf -P pkgsm.conf
9. Create the package in the Serviceguard environment using cmapplyconf command, if the
cmcheckconf command does not report any errors:
# cmapplyconf -P pkgsm.conf
10. Enable package switching for the Sendmail toolkit package using:
# cmmodpkg -e -n node1 -n node2 pkgsm
# cmmodpkg -e pkgsm
11. Start the package using the cmrunpkg command.
# cmrunpkg pkgsm
Configuring modular Sendmail toolkit packages
To configure modular Sendmail toolkit packages:
1. Create a directory for the package on all the cluster nodes using the following command:
# mkdir ${SGCONF}/pkg/sendmail
2. cd to the package directory.
3. Create the package configuration and control templates using the cmmakepkg command:
# cmmakepkg m tkit/sendmail/sendmail pkgsm.conf
4. Edit the following attributes manually in the package configuration file:
DescriptionAttribute
The toolkit configuration directory is synonymous to
package configuration directory. This directory holds
TKIT_DIR
the toolkit configuration file. This parameter directs
cmapplyconf to generate the hasendmail.conf
file under this directory. To put the toolkit into
Using Sendmail toolkit 49