HP-UX Internet Services Administrator's Guide (August 2003)

Configuring NTP
Advanced NTP Topics
Chapter 4 87
#default entry - matches *all* source addresses
restrict default notrust nomodify
#trust for time, but do not allow ntpq requests
restrict 193.100.0.0 mask 255.255.0.0 nomodify noquery
#ignore time requests, but allow ntpq requests
restrict 193.8.10.1 noserve
#local host address is unrestricted
restrict 193.100.100.7
Starting and Stopping xntpd
To start xntpd, do one of the following:
Set the environment variable XNTPD to 1 in the file
/etc/rc.config.d/netdaemons. This causes xntpd to start
automatically when you boot the system.
Issue the following command to run the xntpd startup script:
/sbin/init.d/xntpd start
You can specify command-line arguments for starting xntpd with the
XNTPD_ARGS environment variable in the file
/etc/rc.config.d/netdaemons. For more information on
command-line arguments, type man 1M xntpd manpage at the HP-UX
prompt.
NOTE xntpd must be running continuously; if you wish to stop xntpd, it must
be for a short duration.
If you modify the configuration file or the XNTPD_ARGS environment
variable in the file /etc/rc.config.d/netdaemons while xntpd is
running, you have to stop and restart the daemon for the configuration
changes to be effective.
To stop xntpd, issue the following command:
/sbin/init.d/xntpd stop