HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)
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. Table 22 (page 50)
lists all the attributes that you can edit manually in the package configuration file.
Table 22 List of attributes that you can edit
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
maintenance mode, create sendmail.debug file under
this directory.
PID file that holds the process ID of the Sendmail server.
This PID file must correspond to the sendmail PidFile
HA_SERVER_PID
directive in the sendmail.cf under /etc/
mail/directory
For example:
HA_SERVER_PID /var/run/sendmail.pid
NOTE: Sendmail toolkit does not support online
modification of this attribute.
The db files in /etc/mail directory that is required to
rebuild during the package start.
HA_SERVER_DB_FILES
50 Sendmail Toolkit