Highly Available HP-UX Internet Services (May 2008)
For a sample FTP startup script, see “HP ServiceGuard Startup/Stop Script for
FTP” (page 28).
— To invoke the Sendmail startup/stop script, update the function
customer_defined_run_cmds {} function, for example sm-startup,
with the following entry:
<directory-path>/sm-startup start
To start and stop the service, update the function
customer_defined_halt_cmds {} with the following entry:
<directory-path>/sm-startup stop
For a sample Sendmail startup/stop script, see “HP ServiceGuard Startup/Stop
Script for Sendmail” (page 23).
• Register the location of the package control script in the package configuration file
that is created by the cmmakepkg command. Following is a sample package
configuration file generated by the cmmakepkg command:
RUN_SCRIPT /etc/cmcluster/dns/dns.sh
RUN_SCRIPT_TIMEOUT NO_TIMEOUT
HALT_SCRIPT /etc/cmcluster/dns/dns.sh
HALT_SCRIPT_TIMEOUT NO_TIMEOUT
The /etc/cmcluster/dns/dns.sh file specifies the name of the package control
script.
Configuring DNS with HP ServiceGuard
The Berkeley Internet Name Domain (BIND) product provides the DNS protocol
implementation in the HP-UX operating system. BIND 9.3.2 is latest version of BIND
available as part of the core HP-UX 11i v3 operating system. BIND 9.2.0 is the latest
version of BIND available in the core HP-UX 11i v2 operating system. BIND 9.3.2 is
available as a webupgrade for HP-UX 11i v2 at the following location:
http://www.software.hp.com
For information on configuring BIND, see HP-UX IP Address and Client Management
Services Administrator's Guide at:
http://www.docs.hp.com/en/netcom.html#Internet%20Services
This section addresses the following topics:
• “The DNS HP ServiceGuard Monitor Script” (page 8)
• “The DNS HP ServiceGuard Startup/Stop Script” (page 9)
• “Integrating DNS with HP ServiceGuard” (page 9)
The DNS HP ServiceGuard Monitor Script
The DNS monitor script obtains the process ID of the named process from the
/var/run/named.pid file. If the /var/run/named.pid does not exist, the DNS
8