As an alternative to using the xntpd daemon, you can use the ntpdate(1Mtcp) command to set a system time. This command polls the NTP servers that are specified as command line arguments. You can also use ntpdate to reset the time when the system boots before starting xntpd.
If you do not also run xntpd, a convenient way to set up ntpdate is to run it as a cron job using a root crontab(1) entry such as:
0 * * * * ntpdate -s time_server ...which specifies the list of time servers that you want the system to poll every hour.
You can force the time to be synchronized with the time servers at boot time by including an entry to start it in /etc/inet/config. Replace the following line that starts xntpd:
6:/usr/sbin/in.xntpd::y:/etc/inet/ntp.conf::with the following lines:
6a:/usr/sbin/ntpdate::y::-b -s time_server ...: 6b:/usr/sbin/in.xntpd::y:/etc/inet/ntp.conf::The specified sort key order will ensure that ntpdate is run before xntpd starts.
If you do not want xntpd to run, ensure that the /etc/inet/ntp.conf file does not exist or change the second line to read:
6b:/usr/sbin/in.xntpd::n:/etc/inet/ntp.conf::